|
@@ -26,6 +26,14 @@ and use the global `uSim`.
|
|
Same as `usim.peek()`, but instead of returning the object,
|
|
Same as `usim.peek()`, but instead of returning the object,
|
|
it calls the callback with the object or `null` as the only argument.
|
|
it calls the callback with the object or `null` as the only argument.
|
|
|
|
|
|
|
|
+ - `usim.peekUntil(time)`
|
|
|
|
+ Same as `usim.peek()`, but if time of object if bigger than `time`,
|
|
|
|
+ `null` is returned instead and object stays in the schedule.
|
|
|
|
+
|
|
|
|
+ - `usim.peekUntil(time, cb)`
|
|
|
|
+ Same as `usim.peek(cb)`, but if time of object if bigger than `time`,
|
|
|
|
+ `null` is passed instead and object stays in the schedule.
|
|
|
|
+
|
|
- `usim.stream(cb)`
|
|
- `usim.stream(cb)`
|
|
Calls `cb` with all scheduled objects, as if `usim.peek(cb)`
|
|
Calls `cb` with all scheduled objects, as if `usim.peek(cb)`
|
|
was called in loop while there are some scheduled objects.
|
|
was called in loop while there are some scheduled objects.
|