2021-06-01 19:41:30 +03:00
|
|
|
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"):
|
2021-04-14 17:23:42 +03:00
|
|
|
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()
|
2021-04-14 17:23:42 +03:00
|
|
|
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()
|