shajara API
    Preparing search index...

    Execution environment that launches entries and exposes external observation and control.

    interface Executor {
        scope: ExecutionScopeRef<never>;
        status: LaunchStatus;
        cancel(scope: ExecutionScopeRef<unknown>): void;
        close<Outcome>(
            endpoint: ChannelEndpoint<unknown, Outcome>,
            outcome: Outcome,
        ): void;
        halt(scope: ExecutionScopeRef<unknown>, failure: Failure): void;
        launch<Result>(
            scope: ExecutionScopeRef<unknown>,
            ritual: Ritual<Result>,
        ): Option<LaunchHandle<Result>>;
        onSettled<Result>(
            future: FutureKey<Result>,
            listener: (result: FutureResult<Result>) => void,
        ): Disposer;
        settle<Result>(
            futureSettle: FutureSettleKey<Result>,
            result: FutureResult<Result>,
        ): boolean;
        trySend<Value, Outcome>(
            sender: ChannelSender<Value, Outcome>,
            value: Value,
        ): Option<SendResult<Outcome>>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    scope: ExecutionScopeRef<never>

    Scope that owns the launched work's convergence future.

    status: LaunchStatus

    Current lifecycle state for the launched work.

    Methods