more notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-03-01 04:31:09 +03:00
parent e0eb20f29b
commit e19b3e3466

View File

@ -314,6 +314,8 @@ var ChildProcessPeerActions = actions.Actions({
resolve(id)
}).bind(this))
})],
// XXX should this call .stop() on the child???
// ...does the child handle kill gracefully???
peerDisconnect: ['- Peer/',
makeProtocolHandler('child', function(id){
return new Promise((function(resolve, reject){
@ -330,6 +332,10 @@ var ChildProcessPeerActions = actions.Actions({
}).bind(this))
})],
// XXX can we do sync???
// ...this would be useful to 100% match the action api and
// make the thing transparent...
// XXX can we do prop access???
peerCall: ['- Peer/',
makeProtocolHandler('child', function(id, action){
return new Promise((function(resolve, reject){