SoulFireTask
Public TypeScript members of SoulFireTask.
Generated from the pinned SDK source. Use the matching installation. Each source link points to this baseline.
Compose Effect operations with yield* inside a scoped workflow. Properties expose sub-clients and state.
id
get id(): stringsnapshot
The task as last fetched: refresh, wait and cancel update it.
get snapshot(): Readonly<BotTask>terminal
Completed, cancelled, failed or timed out.
get terminal(): booleanrefresh
refresh(
options?: CallOptions,
): Effect.Effect<BotTask, SoulFireOperationError>events
The task's events after afterRevision, until it ends. afterRevision
defaults to the snapshot's.
events(options?: {
afterRevision?: bigint;
call?: CallOptions;
}): Stream.Stream<BotTaskEvent, SoulFireOperationError>wait
Resolves when the task ends, however it ends.
wait(options?: {
call?: CallOptions;
}): Effect.Effect<BotTask, SoulFireOperationError>cancel
cancel(
reason = "",
options?: CallOptions,
): Effect.Effect<BotTask, SoulFireOperationError>result
Waits for the result. Fails with SoulFireTaskFailed unless it completed.
result(options?: {
call?: CallOptions;
}): Effect.Effect<
Result extends DescMessage ? MessageShape<Result> : BotTask,
SoulFireOperationError
>How is this page?
Last updated on
