(options: {
readonly name: string
readonly duration: Duration.Input
})
| 40 | * @since 4.0.0 |
| 41 | */ |
| 42 | export const make = (options: { |
| 43 | readonly name: string |
| 44 | readonly duration: Duration.Input |
| 45 | }): DurableClock => ({ |
| 46 | [TypeId]: TypeId, |
| 47 | name: options.name, |
| 48 | duration: Duration.fromInputUnsafe(options.duration), |
| 49 | deferred: DurableDeferred.make(`DurableClock/${options.name}`) |
| 50 | }) |
| 51 | |
| 52 | const EngineTag = Context.Service<WorkflowEngine, WorkflowEngine["Service"]>( |
| 53 | "effect/workflow/WorkflowEngine" satisfies typeof WorkflowEngine.key |