MCPcopy Create free account
hub / github.com/Effect-TS/effect / make

Function make

packages/effect/src/unstable/workflow/DurableClock.ts:42–50  ·  view source on GitHub ↗
(options: {
  readonly name: string
  readonly duration: Duration.Input
})

Source from the content-addressed store, hash-verified

40 * @since 4.0.0
41 */
42export 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
52const EngineTag = Context.Service<WorkflowEngine, WorkflowEngine["Service"]>(
53 "effect/workflow/WorkflowEngine" satisfies typeof WorkflowEngine.key

Callers 1

DurableClock.tsFile · 0.70

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected