Skip to main content Link Search Menu Expand Document (external link)

WorkflowEngine overview

Added in v1.0.0


Table of contents


utils

WorkflowEngine (interface)

Signature

export interface WorkflowEngine<T extends Message.Message.Any> {
  sendDiscard: (request: T) => Effect.Effect<void>
  send: <A extends T>(request: A) => Effect.Effect<Message.Message.Success<A>, Message.Message.Error<A>>
}

Added in v1.0.0

makeScoped

Signature

export declare function makeScoped<T extends Message.Message.Any, R>(
  workflow: Workflow.Workflow<T, R>
): Effect.Effect<WorkflowEngine<T>, never, R | Scope.Scope | DurableExecutionJournal.DurableExecutionJournal>

Added in v1.0.0