Skip to content

Commit

Permalink
feat: add replyDeadline to ExperimentalInternetComputer (#677)
Browse files Browse the repository at this point in the history
Co-authored-by: Claudio Russo <claudio@dfinity.org>
  • Loading branch information
ggreif and crusso authored Dec 5, 2024
1 parent adb24da commit 4ace266
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ExperimentalInternetComputer.mo
Original file line number Diff line number Diff line change
Expand Up @@ -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 be received by the requesting canister.
/// Queries and non-best-effort update messages return zero.
///
public func replyDeadline() : Nat = Prim.nat64ToNat(Prim.replyDeadline());

}

0 comments on commit 4ace266

Please sign in to comment.