mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -05:00
a warning in doc
This commit is contained in:
parent
d2521472c0
commit
ed4cc2550b
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ val wait_block : 'a t -> 'a or_error
|
||||||
(** [wait_block fut] blocks the current thread until [fut] is resolved,
|
(** [wait_block fut] blocks the current thread until [fut] is resolved,
|
||||||
and returns its value.
|
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
|
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.
|
call [wait_block] on futures running on the same pool or a pool depending on it.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue