git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 5d73da450ff3f8fae6bf5844ed02da668a06e011

Files: 5d73da450ff3f8fae6bf5844ed02da668a06e011 / docs / scheduler.md

3161 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-40

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-94

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

Parameters

Returns Promise

leastNumberOfTicks

scheduler.js:100-103

returns the oldest container's ticks

Returns integer

Built with git-ssb-web