@facing/scheduler
v0.2.15
Published
```typescript import Scheduler from '' const scheduler = new Scheduler() ```
Downloads
4
Readme
Make instance
import Scheduler from ''
const scheduler = new Scheduler()
Create and get layer
import Scheduler from ''
const scheduler = new Scheduler()
scheduler.createLayer('Layer1')
const layer1 = scheduler.getLayer('layer1')
scheduler.createLayer('Layer2')
const layer2 = scheduler.getLayer('layer2')
Create record
import Scheduler from ''
const scheduler = new Scheduler()
const layer = scheduler.createLayer('Layer')
layer.addRecord({
callbackFunction:(arg1:number,arg2:number)=>{
},
params:[1,2]
})
layer.addBeforeRecord({
callbackFunction:(arg1:number,arg2:number)=>{
},
params:[1,2]
})
layer.addAfterRecord({
callbackFunction:(arg1:number,arg2:number)=>{
},
params:[1,2]
})
Schedule
import Scheduler from ''
const scheduler = new Scheduler()
scheduler.schedule()