Metakit / @doeixd/metakit/temporal

EffectStep

interface · packages/metakit/src/temporalWalk.ts:168

interface EffectStep<World, Name extends string, E = unknown, R = never> {
  readonly name: Name
  readonly after?: ReadonlyArray<EffectStep<World, NoInfer<Name>, E, R>>
  readonly run: (world: World) => Effect.Effect<void, E, R>
}

One step of an EffectScenario: an effectful send, exchange, or transaction.

Members

EffectStep.name

property · packages/metakit/src/temporalWalk.ts:169

readonly name: Name

EffectStep.after

property · packages/metakit/src/temporalWalk.ts:171

readonly after?: ReadonlyArray<EffectStep<World, NoInfer<Name>, E, R>>

The steps of the scenario that must have run before this one.

EffectStep.run

property · packages/metakit/src/temporalWalk.ts:172

readonly run: (world: World) => Effect.Effect<void, E, R>