@facing/scheduler
TypeScript icon, indicating that this package has built-in type declarations

0.2.15 • Public • Published

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()

Readme

Keywords

none

Package Sidebar

Install

npm i @facing/scheduler

Weekly Downloads

0

Version

0.2.15

License

MIT

Unpacked Size

22 kB

Total Files

15

Last publish

Collaborators

  • ruojianll