@hegeldev/hegel
    Preparing search index...

    Function runAsync

    • run for machines whose rules or invariants are asynchronous: each is awaited before the next step. Call it inside a testAsync body. Draws themselves are synchronous, so only the user's own awaits yield.

      Type Parameters

      • S

      Parameters

      Returns Promise<void>

      hegel.testAsync(async (tc) => {
      await hegel.stateful.runAsync(tc, clientMachine, { client: await connect() });
      });