14 lines
385 B
Plaintext
Raw Normal View History

import "@fluencelabs/aqua-lib/builtin.aqua"
2021-04-14 18:19:25 +03:00
2021-04-15 16:05:22 +03:00
service ParService("parservice-id"):
call: -> string
2021-04-15 12:30:42 +03:00
-- here we go to another node and not waiting for execution there
2021-04-15 16:05:22 +03:00
-- all `ParService.call()` will be executed instantly
2021-04-15 12:30:42 +03:00
func parFunc( node: string, c: Info -> () ):
2021-04-15 16:05:22 +03:00
y <- ParService.call()
par on node:
2021-04-15 11:51:02 +03:00
t <- Peer.identify()
2021-04-14 18:46:12 +03:00
c(t)
2021-04-15 16:05:22 +03:00
par x <- ParService.call()