MCPcopy
hub / github.com/statelyai/xstate / main.ts

File main.ts

examples/workflow-car-vitals/main.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { assign, createMachine, fromPromise, createActor, log } from 'xstate';
2
3async function delay(ms: number, errorProbability: number = 0): Promise<void> {
4 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 9

createMachineFunction · 0.85
assignFunction · 0.85
fromPromiseFunction · 0.85
logFunction · 0.85
createActorFunction · 0.85
sendMethod · 0.80
delayFunction · 0.70
subscribeMethod · 0.65
startMethod · 0.65

Tested by

no test coverage detected