mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-07-31 07:42:16 +00:00
14 lines
375 B
Plaintext
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()
|