MCPcopy Index your code
hub / github.com/Effect-TS/effect / initial

Method initial

packages/workflow/src/WorkflowEngine.ts:229–245  ·  view source on GitHub ↗
(
    workflow: Workflow.Any,
    executionId: string
  )

Source from the content-addressed store, hash-verified

227 }
228>() {
229 static initial(
230 workflow: Workflow.Any,
231 executionId: string
232 ): WorkflowInstance["Type"] {
233 return WorkflowInstance.of({
234 executionId,
235 workflow,
236 scope: Effect.runSync(Scope.make()),
237 suspended: false,
238 interrupted: false,
239 cause: undefined,
240 activityState: {
241 count: 0,
242 latch: Effect.unsafeMakeLatch()
243 }
244 })
245 }
246}
247
248/**

Callers 5

WorkflowEngine.tsFile · 0.80
activityFunction · 0.80

Calls 2

ofMethod · 0.65
makeMethod · 0.65

Tested by

no test coverage detected