Files: 72a22e2c56fb1973e226eac66319ef4ea3909a6f / docs / scheduler.md
3025 bytesRaw
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Table of Contents
constructor
The Scheduler manages the actor instances and tracks how many "ticks" they have ran.
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
exclude
Returns integer
Built with git-ssb-web