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.
await
Optional
hegel.testAsync(async (tc) => { await hegel.stateful.runAsync(tc, clientMachine, { client: await connect() });}); Copy
hegel.testAsync(async (tc) => { await hegel.stateful.runAsync(tc, clientMachine, { client: await connect() });});
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.