aqua/aqua-src/hack.aqua
2022-04-12 16:27:04 +03:00

18 lines
320 B
Plaintext

service Peer("peer"):
hodes: -> []string
timeout: i32, string -> string
func test_timeout() -> string:
on HOST_PEER_ID:
nodes <- Peer.hodes()
results: *string
for node <- nodes par:
on node:
results <<- node
timeout: *string
join results[999]
par join results[123]
<- timeout!