Files: 4d548116a6a4d4ceeda766ea686a328148cb029b / docs / scheduler.md
3149 bytesRaw
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Table of Contents
constructor
The Scheduler manages the run cycle of Actors and figures out which order they should run in
lock
locks the scheduler from clearing waits untill the lock is resolved
Parameters
id
string
Returns function the resolve function to call once it to unlock
update
updates an instance with a new tick count
Parameters
instance
Object an actor instance
getInstance
returns an Actor instance
Parameters
id
String
Returns Object
done
deletes an instance from the scheduler
Parameters
id
String the containers id
wait
returns a promise that resolves once all containers have reached the given number of ticks
Parameters
ticks
interger the number of ticks to waitid
string optional id of the container that is waiting
Returns Promise
leastNumberOfTicks
returns the oldest container's ticks
Parameters
exculde
Returns integer
Built with git-ssb-web