a warning in doc

This commit is contained in:
Simon Cruanes 2023-06-08 14:44:15 -04:00
parent d2521472c0
commit ed4cc2550b
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -116,7 +116,7 @@ val wait_block : 'a t -> 'a or_error
(** [wait_block fut] blocks the current thread until [fut] is resolved,
and returns its value.
A word of warning: this will monopolize the calling thread until the future
{b NOTE}: A word of warning: this will monopolize the calling thread until the future
resolves. This can also easily cause deadlocks, if enough threads in a pool
call [wait_block] on futures running on the same pool or a pool depending on it.