@@ -304,7 +304,7 @@ module Trigger : sig
304
304
structured concurrency mechanisms. If you know what you are doing, use \
305
305
[@alert \" -handler\" ]." ]
306
306
(* * [from_action x y resume] is equivalent to
307
- [let t = create () in assert (on_signal t x y resume); t].
307
+ {{!on_signal} [let t = create () in assert (on_signal t x y resume); t]} .
308
308
309
309
⚠️ The action that you attach to a trigger must be safe to call from any
310
310
context that might end up signaling the trigger directly or indirectly
@@ -522,14 +522,15 @@ module Computation : sig
522
522
523
523
val return : 'a t -> 'a -> unit
524
524
(* * [return computation value] is equivalent to
525
- [try_return computation value |> ignore]. *)
525
+ {{!try_return} [try_return computation value |> ignore]} . *)
526
526
527
527
val try_finish : unit t -> bool
528
- (* * [try_finish computation] is equivalent to [try_return computation ()]. *)
528
+ (* * [try_finish computation] is equivalent to
529
+ {{!try_return} [try_return computation ()]}. *)
529
530
530
531
val finish : unit t -> unit
531
532
(* * [finish computation] is equivalent to
532
- [try_finish computation |> ignore]. *)
533
+ {{!try_finish} [try_finish computation |> ignore]} . *)
533
534
534
535
val try_capture : 'a t -> ('b -> 'a ) -> 'b -> bool
535
536
(* * [try_capture computation fn x] calls [fn x] and tries to complete the
@@ -539,7 +540,7 @@ module Computation : sig
539
540
540
541
val capture : 'a t -> ('b -> 'a ) -> 'b -> unit
541
542
(* * [capture computation fn x] is equivalent to
542
- [try_capture computation fn x |> ignore]. *)
543
+ {{!try_capture} [try_capture computation fn x |> ignore]} . *)
543
544
544
545
(* * {2 Interface for canceling} *)
545
546
@@ -554,7 +555,7 @@ module Computation : sig
554
555
555
556
val cancel : 'a t -> Exn_bt .t -> unit
556
557
(* * [cancel computation exn_bt] is equivalent to
557
- [try_cancel computation exn_bt |> ignore]. *)
558
+ {{!try_cancel} [try_cancel computation exn_bt |> ignore]} . *)
558
559
559
560
(* * {2 Interface for timeouts} *)
560
561
@@ -591,7 +592,7 @@ module Computation : sig
591
592
592
593
val check : 'a t -> unit
593
594
(* * [check computation] is equivalent to
594
- [Option.iter Exn_bt.raise (canceled computation)]. *)
595
+ {{!canceled} [Option.iter Exn_bt.raise (canceled computation)]} . *)
595
596
596
597
val peek : 'a t -> ('a , Exn_bt .t ) result option
597
598
(* * [peek computation] returns the result of the computation or [None] in case
@@ -743,8 +744,8 @@ module Fiber : sig
743
744
current handler}. *)
744
745
745
746
val sleep : seconds :float -> unit
746
- (* * [sleep ~seconds] suspends the current fiber for specified number of
747
- seconds. *)
747
+ (* * [sleep ~seconds] suspends the current fiber for the specified number of
748
+ [ seconds] . *)
748
749
749
750
(* * {2 Interface for spawning} *)
750
751
@@ -1041,7 +1042,7 @@ module Fiber : sig
1041
1042
1042
1043
val create : forbid :bool -> 'a Computation .t -> t
1043
1044
(* * [create ~forbid computation] is equivalent to
1044
- [create_packed ~forbid (Computation.Packed computation)]. *)
1045
+ {{!create_packed} [create_packed ~forbid (Computation.Packed computation)]} . *)
1045
1046
1046
1047
val try_suspend :
1047
1048
t -> Trigger .t -> 'x -> 'y -> (Trigger .t -> 'x -> 'y -> unit ) -> bool
0 commit comments