This is the binding between an executor and a schedule.
class SomeExecutor extends Executor { start(world:World, schedule:Schedule){ schedule.run(world,schedule) }}function helloWorld(){ console.log("hello world")}const world = new World()const schedule = new Schedule()const executor = new Executor()const executable = new Executable(schedule, executor)//Runs the schedule with the given executor//outputs "hello world" to the console.executable.start() Copy
class SomeExecutor extends Executor { start(world:World, schedule:Schedule){ schedule.run(world,schedule) }}function helloWorld(){ console.log("hello world")}const world = new World()const schedule = new Schedule()const executor = new Executor()const executable = new Executable(schedule, executor)//Runs the schedule with the given executor//outputs "hello world" to the console.executable.start()
This is the binding between an executor and a schedule.
Example