@@ -59,6 +59,8 @@ module Mutex : sig
5959 val unlock : ?checked : bool -> t -> unit
6060 (* * [unlock mutex] unlocks the mutex.
6161
62+ ℹ️ This operation is not cancelable.
63+
6264 @raise Sys_error if the mutex was locked by another fiber. If
6365 [~checked:false] was specified for some previous operation on the mutex
6466 the exception may or may not be raised. *)
@@ -128,6 +130,8 @@ module Semaphore : sig
128130 val release : t -> unit
129131 (* * [release semaphore] increments the count of the semaphore.
130132
133+ ℹ️ This operation is not cancelable.
134+
131135 @raise Sys_error in case the count would overflow. *)
132136
133137 val acquire : t -> unit
@@ -154,7 +158,9 @@ module Semaphore : sig
154158 [initial] is [true] and count of [0] otherwise. *)
155159
156160 val release : t -> unit
157- (* * [release semaphore] sets the count of the semaphore to [1]. *)
161+ (* * [release semaphore] sets the count of the semaphore to [1].
162+
163+ ℹ️ This operation is not cancelable. *)
158164
159165 val acquire : t -> unit
160166 (* * [acquire semaphore] waits until the count of the semaphore is [1] and
@@ -259,6 +265,8 @@ module Latch : sig
259265 invalid_arg "zero count"
260266 ]}
261267
268+ ℹ️ This operation is not cancelable.
269+
262270 @raise Invalid_argument in case the count of the latch is zero. *)
263271
264272 val try_incr : t -> bool
@@ -309,7 +317,9 @@ module Ivar : sig
309317 (* * [try_poison_at ivar exn bt] attempts to poison the incremental variable
310318 with the specified exception and backtrace. Returns [true] on success and
311319 [false] in case the variable had already been poisoned or assigned a
312- value. *)
320+ value.
321+
322+ ℹ️ This operation is not cancelable. *)
313323
314324 val try_poison : ?callstack : int -> 'a t -> exn -> bool
315325 (* * [try_poison ivar exn] is equivalent to
@@ -364,7 +374,9 @@ module Stream : sig
364374 val poison_at : 'a t -> exn -> Printexc .raw_backtrace -> unit
365375 (* * [poison_at stream exn bt] marks the stream as poisoned at the current
366376 position, which means that subsequent attempts to {!push} to the [stream]
367- will raise the given exception with backtrace. *)
377+ will raise the given exception with backtrace.
378+
379+ ℹ️ This operation is not cancelable. *)
368380
369381 val poison : ?callstack : int -> 'a t -> exn -> unit
370382 (* * [poison stream exn] is equivalent to
0 commit comments