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

x/xstate/src/scheduler.ts>Scheduler

State machines and statecharts for the modern web.
Go to Latest
class Scheduler
import { Scheduler } from "https://deno.land/x/xstate@xstate%404.33.4/src/scheduler.ts";

Constructors

new
Scheduler(options?: Partial<SchedulerOptions>)

Properties

private
initialized: boolean
private
options: SchedulerOptions
private
processingEvent: boolean
private
queue: Array<() => void>

Methods

private
flushEvents()
private
process(callback: () => void)
clear(): void
initialize(callback?: () => void): void
schedule(task: () => void): void