Commit 33a6e566ff3440039cadbd025088e2f289f3c59d
rename message -> runMessage
wanderer committed on 11/21/2017, 11:21:17 PMParent: 1be1cba2ec920cea5294cc3638577a736d106be5
Files changed
actor.js | changed |
actor.js | ||
---|---|---|
@@ -61,9 +61,9 @@ | ||
61 | 61 | // start loop before running intializtion message so the the container state |
62 | 62 | // will be "running" incase the actor recievse a message will running |
63 | 63 | // creation code |
64 | 64 | this._startMessageLoop() |
65 | - return this.message(message, 'onCreation') | |
65 | + return this.runMessage(message, 'onCreation') | |
66 | 66 | } |
67 | 67 | |
68 | 68 | // waits for the next message |
69 | 69 | async _startMessageLoop () { |
@@ -80,9 +80,9 @@ | ||
80 | 80 | this.ticks = message._fromTicks |
81 | 81 | this.hypervisor.scheduler.update(this) |
82 | 82 | } |
83 | 83 | // run the next message |
84 | - await this.message(message) | |
84 | + await this.runMessage(message) | |
85 | 85 | } |
86 | 86 | |
87 | 87 | this.running = false |
88 | 88 | this.container.onIdle() |
@@ -108,9 +108,9 @@ | ||
108 | 108 | * @param {object} message - the message to run |
109 | 109 | * @param {String} method - which method to run |
110 | 110 | * @returns {Promise} |
111 | 111 | */ |
112 | - async message (message, method = 'onMessage') { | |
112 | + async runMessage (message, method = 'onMessage') { | |
113 | 113 | const responseCap = message.responseCap |
114 | 114 | delete message.responseCap |
115 | 115 | |
116 | 116 | let result |
Built with git-ssb-web