From ed4cc2550b0cf25b6f3dcd98b16d3f1da3510166 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Thu, 8 Jun 2023 14:44:15 -0400 Subject: [PATCH] a warning in doc --- src/fut.mli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fut.mli b/src/fut.mli index 3fb34aab..c5b635d3 100644 --- a/src/fut.mli +++ b/src/fut.mli @@ -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.