Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Oct 18, 2024
1 parent 9a598b1 commit fa40cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/fut.mli
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ val make_promise : unit -> 'a promise
(** Same as {!make} but returns a single promise (which can be upcast to a
future). This is useful mostly to preserve memory.
How to upcast to a future:
How to upcast to a future in the worst case:
{[let prom = Fut.make_promise();;
let fut: _ Fut.t = (prom :> _ Fut.t)
let fut = (prom : _ Fut.promise :> _ Fut.t) ;;
]}
@since NEXT_RELEASE *)

Expand Down

0 comments on commit fa40cf8

Please sign in to comment.