git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 4c6125763fffeac43ae5302bb5541ac7f124c0a3

Files: 4c6125763fffeac43ae5302bb5541ac7f124c0a3 / docs / scheduler.md

3025 bytesRaw

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

Table of Contents

constructor

scheduler.js:13-17

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

lock

scheduler.js:24-34

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:40-44

updates an instance with a new tick count

Parameters

getInstance

scheduler.js:56-59

returns an Actor instance

Parameters

Returns Object

done

scheduler.js:65-70

deletes an instance from the scheduler

Parameters

wait

scheduler.js:79-93

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

Parameters

Returns Promise

leastNumberOfTicks

scheduler.js:99-109

returns the oldest container's ticks

Parameters

Returns integer

Built with git-ssb-web