aqua/integration-tests/aqua/examples/parseq.aqua

20 lines
433 B
Plaintext

aqua ParSeq
export testParSeq
import "@fluencelabs/aqua-lib/builtin.aqua"
func testParSeq(relay1: string, relay2: string, relay3: string) -> string:
relays = [relay1, relay2, relay3]
stream: *u64
stream2: *u64
parseq r <- relays on r:
stream <- Peer.timestamp_ms()
for r <- relays par:
on r:
join stream[relays.length - 1]
stream2 <<- Peer.timestamp_ms()
join stream2[relays.length - 1]
<- "ok"