mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -05:00
doc
This commit is contained in:
parent
d957f7b54e
commit
f92efa562d
2 changed files with 3 additions and 3 deletions
|
|
@ -54,11 +54,11 @@ exception Already_fulfilled
|
||||||
val try_cancel : _ promise -> Exn_bt.t -> bool
|
val try_cancel : _ promise -> Exn_bt.t -> bool
|
||||||
(** [try_cancel promise ebt] tries to cancel the promise, returning [true]. It
|
(** [try_cancel promise ebt] tries to cancel the promise, returning [true]. It
|
||||||
returns [false] if the promise is already resolved.
|
returns [false] if the promise is already resolved.
|
||||||
@since NEXT_RELEASE *)
|
@since 0.9 *)
|
||||||
|
|
||||||
val cancel : _ promise -> Exn_bt.t -> unit
|
val cancel : _ promise -> Exn_bt.t -> unit
|
||||||
(** Silent version of {!try_cancel}, ignoring the result.
|
(** Silent version of {!try_cancel}, ignoring the result.
|
||||||
@since NEXT_RELEASE *)
|
@since 0.9 *)
|
||||||
|
|
||||||
val fulfill : 'a promise -> 'a or_error -> unit
|
val fulfill : 'a promise -> 'a or_error -> unit
|
||||||
(** Fullfill the promise, setting the future at the same time.
|
(** Fullfill the promise, setting the future at the same time.
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ val await : 'a Fut.t -> 'a
|
||||||
val yield : unit -> unit
|
val yield : unit -> unit
|
||||||
(** Yield from the current task, must be run on a moonpool runner. Only on OCaml
|
(** Yield from the current task, must be run on a moonpool runner. Only on OCaml
|
||||||
>= 5.0.
|
>= 5.0.
|
||||||
@since NEXT_RELEASE *)
|
@since 0.9 *)
|
||||||
|
|
||||||
module Lock = Lock
|
module Lock = Lock
|
||||||
module Fut = Fut
|
module Fut = Fut
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue