Files
aqua-playground/aqua/examples/co.aqua
2021-06-24 18:17:14 +03:00

14 lines
375 B
Plaintext

import "@fluencelabs/aqua-lib/builtin.aqua"
service CoService("coservice-id"):
call: -> string
-- here we go to another node and not waiting for execution there
-- all `ParService.call()` will be executed instantly
func coFunc( node: string, c: Info -> () ):
y <- CoService.call()
on node:
t <- Peer.identify()
co c(t)
x <- CoService.call()