Files: 8c18358702ca2a0a21af3147cd8ff67d5773f91e / 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