UNPKG
boomerang-client
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
BoomerangJS client
www.boomerangjs.org
zazukoians/boomerang-client
boomerang-client
/
lib
/
scheduler.js
14 lines
(10 loc)
•
212 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var
Scheduler
=
function
(
) {
this
.
queue
= [];
this
.
enqueue
=
function
(
task
) {
this
.
queue
.
push
(task); };
this
.
next
=
function
(
) {
return
this
.
queue
.
shift
(); }; };
module
.
exports
=
Scheduler
;