SoulFire LogoSoulFire

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(): string

Source

snapshot

The task as last fetched: refresh, wait and cancel update it.

get snapshot(): Readonly<BotTask>

Source

terminal

Completed, cancelled, failed or timed out.

get terminal(): boolean

Source

refresh

refresh(
  options?: CallOptions,
): Effect.Effect<BotTask, SoulFireOperationError>

Source

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>

Source

wait

Resolves when the task ends, however it ends.

wait(options?: {
  call?: CallOptions;
}): Effect.Effect<BotTask, SoulFireOperationError>

Source

cancel

cancel(
  reason = "",
  options?: CallOptions,
): Effect.Effect<BotTask, SoulFireOperationError>

Source

result

Waits for the result. Fails with SoulFireTaskFailed unless it completed.

result(options?: {
  call?: CallOptions;
}): Effect.Effect<
  Result extends DescMessage ? MessageShape<Result> : BotTask,
  SoulFireOperationError
>

Source

How is this page?

Last updated on

On this page