Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/xstate/src/eventUtils.ts>createDoneActorEvent

State machines and statecharts for the modern web.
Go to Latest
function createDoneActorEvent
import { createDoneActorEvent } from "https://deno.land/x/xstate@xstate%405.0.0-beta.36/src/eventUtils.ts";

Returns an event that represents that an invoked service has terminated.

An invoked service is terminated when it has reached a top-level final state node, but not when it is canceled.

Parameters

invokeId: string

The invoked service ID

optional
output: unknown

The data to pass into the event