From c4d4d50cdc03d0d270f66f20ba7cd638018d6f11 Mon Sep 17 00:00:00 2001
From: Garrett D'Amore <garrett@damore.org>
Date: Fri, 15 Dec 2023 13:52:27 -0800
Subject: fixes #1721 docs should indicate nng_aio_wait must not be used from a
 callback

---
 docs/man/nng_aio_wait.3.adoc | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'docs/man/nng_aio_wait.3.adoc')

diff --git a/docs/man/nng_aio_wait.3.adoc b/docs/man/nng_aio_wait.3.adoc
index 18b735db..a1afb3e2 100644
--- a/docs/man/nng_aio_wait.3.adoc
+++ b/docs/man/nng_aio_wait.3.adoc
@@ -32,6 +32,10 @@ completed, then it returns immediately.
 If a callback was set with _aio_ when it was allocated, then this
 function will not be called until the callback has completed.
 
+IMPORTANT: This function should never be called from a function that itself
+is a callback of an xref:nng_aio.5.adoc[`aio`], either this one or any other.
+Doing so may result in a deadlock.
+
 == RETURN VALUES
 
 None.
-- 
cgit v1.2.3-70-g09d2

