summaryrefslogtreecommitdiff
path: root/ref/api/aio.html
diff options
context:
space:
mode:
authorgdamore <gdamore@users.noreply.github.com>2025-01-15 15:03:06 +0000
committergdamore <gdamore@users.noreply.github.com>2025-01-15 15:03:06 +0000
commite605ded920a4636e93edbbea31d9625ca5428dfb (patch)
tree32c6bbde7db2e643f56aa60e94ececcb6dee6b10 /ref/api/aio.html
parent2b8d71694ea8755881bdb8d8fe1fdcc9d4055eac (diff)
downloadnng-e605ded920a4636e93edbbea31d9625ca5428dfb.tar.gz
nng-e605ded920a4636e93edbbea31d9625ca5428dfb.tar.bz2
nng-e605ded920a4636e93edbbea31d9625ca5428dfb.zip
deploy: cd9901549239bbe424bc70a48b09f33064d906b6
Diffstat (limited to 'ref/api/aio.html')
-rw-r--r--ref/api/aio.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/ref/api/aio.html b/ref/api/aio.html
index 1ce6258e..897629df 100644
--- a/ref/api/aio.html
+++ b/ref/api/aio.html
@@ -255,7 +255,7 @@ operations that are already in progress as well setting a maximum
<p>It is also possible to initiate an asynchronous operation, and <a href="/api/aio.html#wait-for-completion">wait</a> for it to
complete, creating a synchronous flow from an asynchronous one.</p>
<h2 id="create-handle"><a class="header" href="#create-handle">Create Handle</a></h2>
-<pre><code class="language-c">int nng_aio_alloc(nng_aio **aiop, void (*callb)(void *), void *arg);
+<pre><code class="language-c">nng_err nng_aio_alloc(nng_aio **aiop, void (*callb)(void *), void *arg);
</code></pre>
<p>The <a name="a004"></a><code>nng_aio_alloc</code> function creates an <a href="/api/aio.html#asynchronous-io-handle"><code>nng_aio</code></a> object, with the
<a name="a005"></a>callback <em>callb</em> taking the argument <em>arg</em>, and returns it in <em>aiop</em>.</p>