This commit is contained in:
Simon Cruanes 2024-10-18 12:56:43 -04:00
parent 9a598b1efc
commit fa40cf8825
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -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 *)