shajara API Map
    Preparing search index...

    Interface Completer<Return>

    Completion controls for settling one future from callbacks.

    interface Completer<Return> {
        future: RiteFuture<Return>;
        reject: (reason: Error) => void;
        resolve: (value: Return) => void;
    }

    Type Parameters

    • Return
    Index

    Future carrying the completion result.

    reject: (reason: Error) => void

    Settles the future as rejected if it is still pending.

    Type Declaration

      • (reason: Error): void
      • Parameters

        • reason: Error

          Error observed by callers waiting on the future.

        Returns void

    resolve: (value: Return) => void

    Settles the future with a value if it is still pending.

    Type Declaration

      • (value: Return): void
      • Parameters

        • value: Return

          Completion value.

        Returns void