mirror of
https://github.com/fluencelabs/aqua-lib
synced 2025-03-15 13:30:49 +00:00
Peer.timeout: make message non-optional (#16)
This commit is contained in:
parent
0e87271350
commit
1193236fe7
@ -130,9 +130,9 @@ service Peer("peer"):
|
|||||||
-- Get Unix timestamp in seconds
|
-- Get Unix timestamp in seconds
|
||||||
timestamp_sec() -> u64
|
timestamp_sec() -> u64
|
||||||
|
|
||||||
-- Blocks for the given number of milliseconds. Meant to be used inside `par` blocks.
|
-- Blocks for the given number of milliseconds. Meant to be used within `par` blocks.
|
||||||
-- If `message` is passed, it's returned after duration has passed
|
-- message is returned after duration has passed
|
||||||
timeout(duration_ms: u64, message: ?string) -> ?string
|
timeout(duration_ms: u64, message: string) -> string
|
||||||
|
|
||||||
service Kademlia("kad"):
|
service Kademlia("kad"):
|
||||||
-- Instructs node to return the locally-known nodes
|
-- Instructs node to return the locally-known nodes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user