Metakit / @doeixd/metakit/temporal

walkAsync

function · packages/metakit/src/temporalWalk.ts:353

function walkAsync<World, Name extends string>(
  scenario: AsyncScenario<World, Name>,
  options?: WalkOptions,
): Promise<WalkResult<Name>>

walk for steps that must be awaited (an exchange, an IndexedDB transaction): the same seeded orders, each step after the ones it waits on, the property asked after every step, the same WalkResult with the seed and the shortest order that still breaks it. A step that throws breaks the property with its message. runs is 30 unless given.

Throws for steps that wait on each other, or on one that is no step.