0.0.8 • Published 6 years ago

@saber2pr/schedular v0.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

@saber2pr/schedular

npm

基于 requestIdleCallback 的优先级调度

# from npm
npm install @saber2pr/schedular

# from github
git clone https://github.com/Saber2pr/-saber2pr-schedular.git

API

import VM from '@saber2pr/schedular'

new VM()
  .push({
    expirationTime: 40,
    idleCallback: () => console.log('low priority')
  })
  .push({
    expirationTime: 25,
    idleCallback: () => console.log('common priority')
  })
  .push(() => console.log('high priority')) // expirationTime: 0

start

npm install
npm start

npm run dev

Author: saber2pr


develope and test

you should write ts in /src

you should make test in /src/test

export your core in /src/index.ts!

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago