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 configrunner(scheduler, worlds) Copy
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 configrunner(scheduler, worlds)
Readonly
This is the binding between a labeled schedule and its runtime configuration.
Example