wima
    Preparing search index...

    Class Executable<ScheduleType, SourceWorldType>

    This is the binding between a labeled schedule and its runtime configuration.

    function helloWorld(){
    console.log("hello world")
    }

    class Startup {}
    class MainWorld {}

    const world = new World()
    const scheduler = new Scheduler()
    const executable = new Executable({ label: Startup, repeat: false, world: MainWorld })
    const worlds = new Map([[typeid(MainWorld), world]])

    scheduler.set(executable)
    scheduler.get(Startup).add(helloWorld)

    //Runs the schedule with the given config
    runner(scheduler, worlds)

    Type Parameters

    • ScheduleType
    • SourceWorldType extends Constructor | undefined
    Index

    Constructors

    Properties

    defaultSystemGroup: Constructor<unknown>
    delay: number
    errorHandler: (error: Error, world: World) => void
    label: Constructor<unknown>
    repeat: boolean
    schedule: ScheduleType
    sourceWorld: SourceWorldType
    world: Constructor<unknown>

    Accessors