This is the binding between a labeled schedule and its runtime configuration.
function helloWorld(){ console.log("hello world")}const world = new World()const scheduler = new Scheduler()const runner = defaultRunnerconst executable = new Executable({ label: "startup", repeat: false })scheduler.set(executable)scheduler.get("startup").add(helloWorld)//Runs the schedule with the given config//outputs "hello world" to the console.runner.run(scheduler, world) Copy
function helloWorld(){ console.log("hello world")}const world = new World()const scheduler = new Scheduler()const runner = defaultRunnerconst executable = new Executable({ label: "startup", repeat: false })scheduler.set(executable)scheduler.get("startup").add(helloWorld)//Runs the schedule with the given config//outputs "hello world" to the console.runner.run(scheduler, world)
Readonly
This is the binding between a labeled schedule and its runtime configuration.
Example