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

Function createDoneActorEvent

packages/core/src/eventUtils.ts:41–50  ·  view source on GitHub ↗
(
  invokeId: string,
  output?: unknown
)

Source from the content-addressed store, hash-verified

39 * @param output The data to pass into the event
40 */
41export function createDoneActorEvent(
42 invokeId: string,
43 output?: unknown
44): DoneActorEvent {
45 return {
46 type: `xstate.done.actor.${invokeId}`,
47 output,
48 actorId: invokeId
49 };
50}
51
52export function createErrorActorEvent(
53 id: string,

Callers 2

executeFunction · 0.90
updateMethod · 0.90

Calls

no outgoing calls

Tested by 1

executeFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…