MCPcopy
hub / github.com/statelyai/xstate / flush

Method flush

packages/core/src/Mailbox.ts:47–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 }
46
47 private flush() {
48 while (this._current) {
49 // atm the given _process is responsible for implementing proper try/catch handling
50 // we assume here that this won't throw in a way that can affect this mailbox
51 const consumed = this._current;
52 this._process(consumed.value);
53 this._current = consumed.next;
54 }
55 this._last = null;
56 }
57}

Callers 5

startMethod · 0.95
enqueueMethod · 0.95
types.test.tsxFile · 0.80
persistEffectFunction · 0.80
flushStorageFunction · 0.80

Calls 1

_processMethod · 0.80

Tested by

no test coverage detected