From 41b93787b9b72d63f76f96ee915a930cd76ef85a Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Wed, 4 Dec 2024 18:33:48 +0100 Subject: [PATCH 1/2] feat: add `replyDeadline` to `ExperimentalInternetComputer` --- src/ExperimentalInternetComputer.mo | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ExperimentalInternetComputer.mo b/src/ExperimentalInternetComputer.mo index d7e158be..88a011d8 100644 --- a/src/ExperimentalInternetComputer.mo +++ b/src/ExperimentalInternetComputer.mo @@ -82,4 +82,10 @@ module { /// ``` public let performanceCounter : (counter : Nat32) -> (value: Nat64) = Prim.performanceCounter; + /// Returns the time (in nanoseconds from the epoch start) by when the update message should + /// reply to the best effort message so that it can get delivered at the requesting canister. + /// Queries and non-best-effort update messages return zero. + /// + public func replyDeadline() : Nat = Prim.nat64ToNat(Prim.replyDeadline()); + } From a885c6f12858688158a972c7758f8cece803bbca Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Thu, 5 Dec 2024 19:47:00 +0100 Subject: [PATCH 2/2] Update src/ExperimentalInternetComputer.mo Co-authored-by: Claudio Russo --- src/ExperimentalInternetComputer.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExperimentalInternetComputer.mo b/src/ExperimentalInternetComputer.mo index 88a011d8..3a3d4c2d 100644 --- a/src/ExperimentalInternetComputer.mo +++ b/src/ExperimentalInternetComputer.mo @@ -83,7 +83,7 @@ module { public let performanceCounter : (counter : Nat32) -> (value: Nat64) = Prim.performanceCounter; /// Returns the time (in nanoseconds from the epoch start) by when the update message should - /// reply to the best effort message so that it can get delivered at the requesting canister. + /// reply to the best effort message so that it can be received by the requesting canister. /// Queries and non-best-effort update messages return zero. /// public func replyDeadline() : Nat = Prim.nat64ToNat(Prim.replyDeadline());