git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 2fb975398cfb471a241d9576050158a86e8eff04

Files: 2fb975398cfb471a241d9576050158a86e8eff04 / 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