1.4.4 • Published 7 months ago
scheduling v1.4.4
Scheduler
A simple javascript tool for enterframe tasks.
Installation
npm install scheduling
Usage
Adding enterframe task :
import Scheduler from 'scheduling';
let enterframeID = Scheduler.addEF(loop);
function loop() {
...
}
Remove enterframe task :
Scheduler.removeEF(enterframeID);
Delay call
Scheduler.delay(delayFunc, 'hello', 500);
function delayFunc(mStr) {
console.log(mStr); // console output 'hello'
}
Calling in the next frame :
checkLoaded();
function checkLoaded() {
if(!loaded) {
Scheduler.next(checkLoaded);
return;
}
... // loaded
}
Green threading
Scheduler.defer(func, [params]);
1.4.4
7 months ago
1.4.3
8 months ago
1.4.2
8 months ago
1.4.1
9 months ago
1.4.0
9 months ago
1.3.5
4 years ago
1.3.4
4 years ago
1.3.3
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago
1.3.0
4 years ago
1.2.0
7 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago