git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 33a6e566ff3440039cadbd025088e2f289f3c59d

rename message -> runMessage

wanderer committed on 11/21/2017, 11:21:17 PM
Parent: 1be1cba2ec920cea5294cc3638577a736d106be5

Files changed

actor.jschanged
actor.jsView
@@ -61,9 +61,9 @@
6161 // start loop before running intializtion message so the the container state
6262 // will be "running" incase the actor recievse a message will running
6363 // creation code
6464 this._startMessageLoop()
65- return this.message(message, 'onCreation')
65+ return this.runMessage(message, 'onCreation')
6666 }
6767
6868 // waits for the next message
6969 async _startMessageLoop () {
@@ -80,9 +80,9 @@
8080 this.ticks = message._fromTicks
8181 this.hypervisor.scheduler.update(this)
8282 }
8383 // run the next message
84- await this.message(message)
84+ await this.runMessage(message)
8585 }
8686
8787 this.running = false
8888 this.container.onIdle()
@@ -108,9 +108,9 @@
108108 * @param {object} message - the message to run
109109 * @param {String} method - which method to run
110110 * @returns {Promise}
111111 */
112- async message (message, method = 'onMessage') {
112+ async runMessage (message, method = 'onMessage') {
113113 const responseCap = message.responseCap
114114 delete message.responseCap
115115
116116 let result

Built with git-ssb-web