Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/xstate/src/eventUtils.ts>createAfterEvent

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

Returns an event that represents an implicit event that is sent after the specified delay.

Parameters

delayRef: number | string

The delay in milliseconds

optional
id: string

The state node ID where this event is handled