Commit d0480ef3e0dd3c49070017e1bd5379dadd2aa4ee
update docs
wanderer committed on 11/22/2017, 2:40:38 AMParent: 47cdaf541c5fb70cd51572ef2e40fda377cfe086
Files changed
actor.js | changed |
scheduler.js | changed |
actor.js | ||
---|---|---|
@@ -42,9 +42,9 @@ | ||
42 | 42 … | } |
43 | 43 … | } |
44 | 44 … | |
45 | 45 … | /** |
46 | - * adds a message to this containers message queue | |
46 … | + * adds a message to this actor's message queue | |
47 | 47 … | * @param {string} portName |
48 | 48 … | * @param {object} message |
49 | 49 … | */ |
50 | 50 … | queue (message) { |
@@ -131,9 +131,9 @@ | ||
131 | 131 … | } |
132 | 132 … | } |
133 | 133 … | |
134 | 134 … | /** |
135 | - * updates the number of ticks that the container has run | |
135 … | + * updates the number of ticks that the actor has run | |
136 | 136 … | * @param {Number} count - the number of ticks to add |
137 | 137 … | */ |
138 | 138 … | incrementTicks (count) { |
139 | 139 … | this.ticks += count |
scheduler.js | ||
---|---|---|
@@ -7,10 +7,10 @@ | ||
7 | 7 … | } |
8 | 8 … | |
9 | 9 … | module.exports = class Scheduler { |
10 | 10 … | /** |
11 | - * The Scheduler manages the run cycle of Actors and figures out which | |
12 | - * order they should run in | |
11 … | + * The Scheduler manages the actor instances and tracks how many "ticks" they | |
12 … | + * have ran. | |
13 | 13 … | */ |
14 | 14 … | constructor () { |
15 | 15 … | this._waits = [] |
16 | 16 … | this._running = new Set() |
Built with git-ssb-web