git ssb

0+

wanderer🌟 / js-primea-abstract-container



Commit e7b099fed186b0b8d802dfde9d96da2c3bb118f1

Mark initialise/run async

Alex Beregszaszi committed on 7/21/2017, 7:32:57 PM
Parent: 46a9266387de41c0e573760363c7edc1452e1d9d

Files changed

index.jschanged
index.jsView
@@ -10,16 +10,16 @@
1010 // In general, a root instance receives no message, but every other instance
1111 // receives a message with a singel port, which is a channel to its parent (aka the root).
1212 //
1313 // Optionally it can return a single value.
14- initialize (message) {
14 + async initialize (message) {
1515 throw new Error('Unimplemented initialiser')
1616 }
1717
1818 // This is called for each incoming message the container gets.
1919 //
2020 // Optionally it can return a single value.
21- run (message) {
21 + async run (message) {
2222 throw new Error('Unimplemented message: ' + message.data)
2323 }
2424
2525 // onIdle is called when there are no more immediate messages pending

Built with git-ssb-web