git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 594efad3e6f4fb8105d5f177d77ec89c2ecd2c09

Files: 594efad3e6f4fb8105d5f177d77ec89c2ecd2c09 / docs / scheduler.md

3123 bytesRaw

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

Table of Contents

constructor

scheduler.js:8-13

The Sceduler manages the run cycle of the containes and figures out which order they should run in

getLock

scheduler.js:20-30

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:36-39

updates an instance with a new tick count

Parameters

getInstance

scheduler.js:59-61

returns a container

Parameters

Returns object

done

scheduler.js:67-71

deletes an instance from the scheduler

Parameters

wait

scheduler.js:80-93

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

Parameters

Returns Promise

oldest

scheduler.js:99-102

returns the oldest container's ticks

Returns integer

Built with git-ssb-web