git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 4ba8adb282c74465fc1a5af42de5dfd4c1959f99

Files: 4ba8adb282c74465fc1a5af42de5dfd4c1959f99 / docs / scheduler.md

3143 bytesRaw

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

Table of Contents

constructor

scheduler.js:14-20

The Scheduler manages the actor instances and tracks how many "ticks" they have ran.

lock

scheduler.js:27-29

locks the scheduler from clearing waits untill the lock is resolved

Parameters

Returns function the resolve function to call once it to unlock

update

scheduler.js:35-40

updates an instance with a new tick count

Parameters

getInstance

scheduler.js:52-54

returns an Actor instance

Parameters

Returns Object

done

scheduler.js:60-64

deletes an instance from the scheduler

Parameters

wait

scheduler.js:73-84

returns a promise that resolves once all containers have reached the given number of ticks

Parameters

Returns Promise

leastNumberOfTicks

scheduler.js:90-100

returns the oldest container's ticks

Parameters

Returns integer

Built with git-ssb-web