update actor doc and add more actor based tests
This commit is contained in:
9
tests/actor_send_reply.ce
Normal file
9
tests/actor_send_reply.ce
Normal file
@@ -0,0 +1,9 @@
|
||||
// Test: send with reply callback
|
||||
$start(function(event) {
|
||||
if (event.type == 'greet') {
|
||||
send(event.actor, {ping: true}, function(reply) {
|
||||
if (!reply.pong) disrupt
|
||||
$stop()
|
||||
})
|
||||
}
|
||||
}, 'tests/actor_helper_echo')
|
||||
Reference in New Issue
Block a user