Metakit / @doeixd/metakit/temporal

AsyncStep

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

interface AsyncStep<World, Name extends string> {
  readonly name: Name
  readonly after?: ReadonlyArray<AsyncStep<World, NoInfer<Name>>>
  readonly run: (world: World) => Promise<void>
}

One step of an AsyncScenario: a send, an exchange, a transaction, awaited.

Members

AsyncStep.name

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

readonly name: Name

AsyncStep.after

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

readonly after?: ReadonlyArray<AsyncStep<World, NoInfer<Name>>>

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

AsyncStep.run

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

readonly run: (world: World) => Promise<void>