Skip to content

Commit 24e7cce

Browse files
committed
document cancelation (or lack thereof)
1 parent 09fba3a commit 24e7cce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/direct/lwt_direct.mli

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ val spawn : (unit -> 'a) -> 'a Lwt.t
4444
4545
When [f ()] terminates (successfully or not), the promise
4646
[spawn f] is resolved with [f ()]'s result, or the exception
47-
raised by [f ()]. *)
47+
raised by [f ()].
48+
49+
The promise returned by [spawn f] is not cancellable. Canceling it
50+
will have no effect. *)
4851

4952
val spawn_in_the_background :
5053
(unit -> unit) ->

0 commit comments

Comments
 (0)