Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Claudio Russo <claudio@dfinity.org>
  • Loading branch information
luc-blaeser and crusso authored Jan 17, 2025
1 parent 0ca1539 commit 3b26467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/md/canister-maintenance/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ actor {
The following properties apply to the low memory hook:
* The execution of `onLowMemory` happens with a certain delay, as it is scheduled as a separate asynchronous message that runs after the message in which the threshold was crossed.
* Once executed, `onLowMemory` is only triggered again when the main memory free space went above the threshold (e.g. by lowering the threshold or shrinking the main memory through canister reinstallation) and when the free space again fell below the threshold.
* Traps or unhandled errors in `onLowMemory` are ignored. They only revert the changes done in `onLowMemory`.
* Traps or unhandled errors in `onLowMemory` are ignored. Traps only revert the changes done in `onLowMemory`.
* Due to its `async` return type, the `onLowMemory` function may send further messages and await results.

0 comments on commit 3b26467

Please sign in to comment.