We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Fun.protect
1 parent e86098e commit 5c9d650Copy full SHA for 5c9d650
lib/picos_std.finally/picos_std_finally.mli
@@ -3,6 +3,12 @@
3
A resource is something that is {i acquired} and must be {i released} after
4
it is no longer needed.
5
6
+ ⚠️ Beware that the Stdlib {{!Fun.protect} [Fun.protect ~finally]} helper does
7
+ not {{!Picos_std_structured.Control.protect} protect against cancelation
8
+ propagation} when it calls [finally ()]. This means that cancelable
9
+ operations performed by [finally] may be terminated and resources might be
10
+ leaked.
11
+
12
We open both this library and a few other libraries
13
14
{[
0 commit comments