git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit d4cfbd48b828917f70d5680efb0a6567637efcdb

build docs

Signed-off-by: wanderer <mjbecze@gmail.com>
wanderer committed on 8/16/2017, 5:46:04 PM
Parent: add087e94722a8b77695d21eca754a562d7e79f5

Files changed

docs/hypervisor.mdchanged
docs/kernel.mdchanged
docs/portManager.mdchanged
docs/scheduler.mdchanged
docs/hypervisor.mdView
@@ -11,21 +11,21 @@
1111 - [registerContainer](#registercontainer)
1212
1313 ## constructor
1414
15-[index.js:16-22](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/index.js#L16-L22 "Source code on GitHub")
15 +[index.js:16-29](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/index.js#L16-L29 "Source code on GitHub")
1616
1717 The Hypervisor manages the container instances by instantiating them and
1818 destorying them when possible. It also facilitates localating Containers
1919
2020 **Parameters**
2121
2222 - `dag` **Graph** an instance of [ipfs.dag](https://github.com/ipfs/interface-ipfs-core/tree/master/API/dag#dag-api)
23-- `state` **[object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the starting state (optional, default `{}`)
23 +- `state` **[object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the starting state (optional, default `{'/':Tree.emptyTreeState}`)
2424
2525 ## addNodeToCheck
2626
27-[index.js:28-30](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/index.js#L28-L30 "Source code on GitHub")
27 +[index.js:35-37](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/index.js#L35-L37 "Source code on GitHub")
2828
2929 add a potaintail node in the state graph to check for garbage collection
3030
3131 **Parameters**
@@ -33,9 +33,9 @@
3333 - `id` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
3434
3535 ## getDestPort
3636
37-[index.js:37-43](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/index.js#L37-L43 "Source code on GitHub")
37 +[index.js:44-51](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/index.js#L44-L51 "Source code on GitHub")
3838
3939 given a port, this finds the corridsponeding endpoint port of the channel
4040
4141 **Parameters**
@@ -45,9 +45,9 @@
4545 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
4646
4747 ## getInstance
4848
49-[index.js:73-83](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/index.js#L73-L83 "Source code on GitHub")
49 +[index.js:105-116](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/index.js#L105-L116 "Source code on GitHub")
5050
5151 gets an existsing container instances
5252
5353 **Parameters**
@@ -57,26 +57,27 @@
5757 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
5858
5959 ## createInstance
6060
61-[index.js:95-119](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/index.js#L95-L119 "Source code on GitHub")
61 +[index.js:128-165](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/index.js#L128-L165 "Source code on GitHub")
6262
6363 creates an new container instances and save it in the state
6464
6565 **Parameters**
6666
6767 - `type` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** the type of container to create
68-- `code` **any**
69-- `entryPorts` **[array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** (optional, default `[]`)
68 +- `message` (optional, default `new Message()`)
7069 - `id` **[object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `{nonce:0,parent:null}`)
7170 - `id.nonce` **[object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
7271 - `id.parent` **[object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
72 +- `code` **any**
73 +- `entryPorts` **[array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)**
7374
7475 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
7576
7677 ## createStateRoot
7778
78-[index.js:127-134](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/index.js#L127-L134 "Source code on GitHub")
79 +[index.js:187-196](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/index.js#L187-L196 "Source code on GitHub")
7980
8081 creates a state root starting from a given container and a given number of
8182 ticks
8283
@@ -87,13 +88,13 @@
8788 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
8889
8990 ## registerContainer
9091
91-[index.js:142-147](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/index.js#L142-L147 "Source code on GitHub")
92 +[index.js:204-209](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/index.js#L204-L209 "Source code on GitHub")
9293
9394 regirsters a container with the hypervisor
9495
9596 **Parameters**
9697
97-- `type` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** the name of the type
9898 - `Constructor` **Class** a Class for instantiating the container
9999 - `args` **any** any args that the contructor takes
100 +- `typeId` **interger** the container's type identification ID (optional, default `Constructor.typeId`)
docs/kernel.mdView
@@ -3,16 +3,17 @@
33 ### Table of Contents
44
55 - [constructor](#constructor)
66 - [queue](#queue)
7-- [run](#run)
7 +- [message](#message)
88 - [incrementTicks](#incrementticks)
99 - [createMessage](#createmessage)
10 +- [createInstance](#createinstance)
1011 - [send](#send)
1112
1213 ## constructor
1314
14-[kernel.js:15-28](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/kernel.js#L15-L28 "Source code on GitHub")
15 +[kernel.js:16-31](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/kernel.js#L16-L31 "Source code on GitHub")
1516
1617 the Kernel manages the varous message passing functions and provides
1718 an interface for the containers to use
1819
@@ -25,33 +26,34 @@
2526 - `opts.container` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the container constuctor and argments
2627
2728 ## queue
2829
29-[kernel.js:35-48](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/kernel.js#L35-L48 "Source code on GitHub")
30 +[kernel.js:38-41](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/kernel.js#L38-L41 "Source code on GitHub")
3031
3132 adds a message to this containers message queue
3233
3334 **Parameters**
3435
3536 - `portName` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
3637 - `message` **[object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
3738
38-## run
39 +## message
3940
40-[kernel.js:78-98](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/kernel.js#L78-L98 "Source code on GitHub")
41 +[kernel.js:89-115](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/kernel.js#L89-L115 "Source code on GitHub")
4142
4243 run the kernels code with a given enviroment
4344
4445 **Parameters**
4546
4647 - `message` **[object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the message to run
47-- `init` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** whether or not to run the intialization routine (optional, default `false`)
48 +- `method` (optional, default `'onMessage'`)
49 +- `init` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** whether or not to run the intialization routine
4850
4951 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
5052
5153 ## incrementTicks
5254
53-[kernel.js:104-107](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/kernel.js#L104-L107 "Source code on GitHub")
55 +[kernel.js:132-135](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/kernel.js#L132-L135 "Source code on GitHub")
5456
5557 updates the number of ticks that the container has run
5658
5759 **Parameters**
@@ -59,20 +61,34 @@
5961 - `count` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** the number of ticks to add
6062
6163 ## createMessage
6264
63-[kernel.js:113-121](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/kernel.js#L113-L121 "Source code on GitHub")
65 +[kernel.js:141-145](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/kernel.js#L141-L145 "Source code on GitHub")
6466
6567 creates a new message
6668
6769 **Parameters**
6870
6971 - `opts`
7072 - `data` **any**
7173
74 +## createInstance
75 +
76 +[kernel.js:153-168](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/kernel.js#L153-L168 "Source code on GitHub")
77 +
78 +creates a new container. Returning a port to it.
79 +
80 +**Parameters**
81 +
82 +- `type` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
83 +- `message`
84 +- `data` **any** the data to populate the initail state with
85 +
86 +Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
87 +
7288 ## send
7389
74-[kernel.js:128-145](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/kernel.js#L128-L145 "Source code on GitHub")
90 +[kernel.js:175-184](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/kernel.js#L175-L184 "Source code on GitHub")
7591
7692 sends a message to a given port
7793
7894 **Parameters**
docs/portManager.mdView
@@ -9,15 +9,14 @@
99 - [clearUnboundedPorts](#clearunboundedports)
1010 - [isBound](#isbound)
1111 - [queue](#queue)
1212 - [get](#get)
13-- [create](#create)
1413 - [createChannel](#createchannel)
1514 - [getNextMessage](#getnextmessage)
1615
1716 ## constructor
1817
19-[portManager.js:33-44](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/portManager.js#L33-L44 "Source code on GitHub")
18 +[portManager.js:32-43](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/portManager.js#L32-L43 "Source code on GitHub")
2019
2120 The port manager manages the the ports. This inculdes creation, deletion
2221 fetching and waiting on ports
2322
@@ -29,9 +28,9 @@
2928 - `opts.exoInterface` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
3029
3130 ## bind
3231
33-[portManager.js:51-73](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/portManager.js#L51-L73 "Source code on GitHub")
32 +[portManager.js:50-71](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/portManager.js#L50-L71 "Source code on GitHub")
3433
3534 binds a port to a name
3635
3736 **Parameters**
@@ -40,9 +39,9 @@
4039 - `port` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the port to bind
4140
4241 ## unbind
4342
44-[portManager.js:80-92](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/portManager.js#L80-L92 "Source code on GitHub")
43 +[portManager.js:78-90](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/portManager.js#L78-L90 "Source code on GitHub")
4544
4645 unbinds a port given its name
4746
4847 **Parameters**
@@ -52,9 +51,9 @@
5251 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
5352
5453 ## delete
5554
56-[portManager.js:98-102](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/portManager.js#L98-L102 "Source code on GitHub")
55 +[portManager.js:96-100](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/portManager.js#L96-L100 "Source code on GitHub")
5756
5857 delete an port given the name it is bound to
5958
6059 **Parameters**
@@ -62,15 +61,15 @@
6261 - `name` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
6362
6463 ## clearUnboundedPorts
6564
66-[portManager.js:112-120](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/portManager.js#L112-L120 "Source code on GitHub")
65 +[portManager.js:110-117](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/portManager.js#L110-L117 "Source code on GitHub")
6766
6867 clears any unbounded ports referances
6968
7069 ## isBound
7170
72-[portManager.js:127-129](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/portManager.js#L127-L129 "Source code on GitHub")
71 +[portManager.js:124-126](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/portManager.js#L124-L126 "Source code on GitHub")
7372
7473 check if a port object is still valid
7574
7675 **Parameters**
@@ -80,9 +79,9 @@
8079 Returns **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
8180
8281 ## queue
8382
84-[portManager.js:135-157](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/portManager.js#L135-L157 "Source code on GitHub")
83 +[portManager.js:132-154](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/portManager.js#L132-L154 "Source code on GitHub")
8584
8685 queues a message on a port
8786
8887 **Parameters**
@@ -91,9 +90,9 @@
9190 - `message` **Message**
9291
9392 ## get
9493
95-[portManager.js:164-166](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/portManager.js#L164-L166 "Source code on GitHub")
94 +[portManager.js:161-163](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/portManager.js#L161-L163 "Source code on GitHub")
9695
9796 gets a port given it's name
9897
9998 **Parameters**
@@ -101,32 +100,19 @@
101100 - `name` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
102101
103102 Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
104103
105-## create
106-
107-[portManager.js:174-193](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/portManager.js#L174-L193 "Source code on GitHub")
108-
109-creates a new container. Returning a port to it.
110-
111-**Parameters**
112-
113-- `type` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
114-- `data` **any** the data to populate the initail state with
115-
116-Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
117-
118104 ## createChannel
119105
120-[portManager.js:199-213](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/portManager.js#L199-L213 "Source code on GitHub")
106 +[portManager.js:169-174](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/portManager.js#L169-L174 "Source code on GitHub")
121107
122108 creates a channel returns the created ports in an Array
123109
124110 Returns **[array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)**
125111
126112 ## getNextMessage
127113
128-[portManager.js:229-257](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/portManager.js#L229-L257 "Source code on GitHub")
114 +[portManager.js:190-219](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/portManager.js#L190-L219 "Source code on GitHub")
129115
130116 Waits for the the next message if any
131117
132118 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
docs/scheduler.mdView
@@ -7,20 +7,20 @@
77 - [update](#update)
88 - [getInstance](#getinstance)
99 - [done](#done)
1010 - [wait](#wait)
11-- [oldest](#oldest)
11 +- [leastNumberOfTicks](#leastnumberofticks)
1212
1313 ## constructor
1414
15-[scheduler.js:8-13](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/scheduler.js#L8-L13 "Source code on GitHub")
15 +[scheduler.js:8-13](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/scheduler.js#L8-L13 "Source code on GitHub")
1616
1717 The Sceduler manages the run cycle of the containes and figures out which
1818 order they should run in
1919
2020 ## getLock
2121
22-[scheduler.js:20-30](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/scheduler.js#L20-L30 "Source code on GitHub")
22 +[scheduler.js:20-30](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/scheduler.js#L20-L30 "Source code on GitHub")
2323
2424 locks the scheduler from clearing waits untill the lock is resolved
2525
2626 **Parameters**
@@ -30,9 +30,9 @@
3030 Returns **[function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** the resolve function to call once it to unlock
3131
3232 ## update
3333
34-[scheduler.js:36-39](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/scheduler.js#L36-L39 "Source code on GitHub")
34 +[scheduler.js:36-40](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/scheduler.js#L36-L40 "Source code on GitHub")
3535
3636 updates an instance with a new tick count
3737
3838 **Parameters**
@@ -40,9 +40,9 @@
4040 - `instance` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** a container instance
4141
4242 ## getInstance
4343
44-[scheduler.js:59-61](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/scheduler.js#L59-L61 "Source code on GitHub")
44 +[scheduler.js:59-61](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/scheduler.js#L59-L61 "Source code on GitHub")
4545
4646 returns a container
4747
4848 **Parameters**
@@ -52,9 +52,9 @@
5252 Returns **[object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
5353
5454 ## done
5555
56-[scheduler.js:67-71](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/scheduler.js#L67-L71 "Source code on GitHub")
56 +[scheduler.js:67-71](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/scheduler.js#L67-L71 "Source code on GitHub")
5757
5858 deletes an instance from the scheduler
5959
6060 **Parameters**
@@ -62,9 +62,9 @@
6262 - `id` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** the containers id
6363
6464 ## wait
6565
66-[scheduler.js:80-93](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/scheduler.js#L80-L93 "Source code on GitHub")
66 +[scheduler.js:80-94](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/scheduler.js#L80-L94 "Source code on GitHub")
6767
6868 returns a promise that resolves once all containers have reached the given
6969 number of ticks
7070
@@ -74,11 +74,11 @@
7474 - `id` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** optional id of the container that is waiting
7575
7676 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
7777
78-## oldest
78 +## leastNumberOfTicks
7979
80-[scheduler.js:99-102](https://github.com/primea/js-primea-hypervisor/blob/317d79e49cb56dd81cb9c94072cd24ad6a825757/scheduler.js#L99-L102 "Source code on GitHub")
80 +[scheduler.js:100-103](https://github.com/primea/js-primea-hypervisor/blob/add087e94722a8b77695d21eca754a562d7e79f5/scheduler.js#L100-L103 "Source code on GitHub")
8181
8282 returns the oldest container's ticks
8383
8484 Returns **integer**

Built with git-ssb-web