EffectScenario.initial
property · packages/metakit/src/temporalWalk.ts:177
readonly initial: Effect.Effect<World, E, Scope.Scope | R>Metakit / @doeixd/metakit/temporal
interface · packages/metakit/src/temporalWalk.ts:176
interface EffectScenario<World, Name extends string, E = unknown, R = never> {
readonly initial: Effect.Effect<World, E, Scope.Scope | R>
readonly steps: ReadonlyArray<EffectStep<World, Name, E, R>>
readonly holds: (
world: World,
ran: ReadonlyArray<Name>,
) => Effect.Effect<Option.Option<string>, E, R>
}Scenario for Effect-native steps: each order runs inside its own Scope for automatic teardown.
EffectScenario.initialproperty · packages/metakit/src/temporalWalk.ts:177
readonly initial: Effect.Effect<World, E, Scope.Scope | R>EffectScenario.stepsproperty · packages/metakit/src/temporalWalk.ts:178
readonly steps: ReadonlyArray<EffectStep<World, Name, E, R>>EffectScenario.holdsproperty · packages/metakit/src/temporalWalk.ts:180
readonly holds: (
world: World,
ran: ReadonlyArray<Name>,
) => Effect.Effect<Option.Option<string>, E, R>Asked after every step, with the steps run so far: a reason when the property is broken.