mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 22:50:18 +00:00
20 lines
433 B
Plaintext
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" |