diff options
| author | gdamore <gdamore@users.noreply.github.com> | 2025-10-09 01:22:20 +0000 |
|---|---|---|
| committer | gdamore <gdamore@users.noreply.github.com> | 2025-10-09 01:22:20 +0000 |
| commit | edd3b6bc34f211bd3d58642d0c69ce1b5bb9dc3b (patch) | |
| tree | f3396cdaec643fb87365b5f92df4f92e6644b075 /ref/api/time.html | |
| parent | ecdd21b5f4bd29bc1a88d276a9c8015dd100063b (diff) | |
| download | nng-edd3b6bc34f211bd3d58642d0c69ce1b5bb9dc3b.tar.gz nng-edd3b6bc34f211bd3d58642d0c69ce1b5bb9dc3b.tar.bz2 nng-edd3b6bc34f211bd3d58642d0c69ce1b5bb9dc3b.zip | |
deploy: 9c834956456924df7c885ab8b79573721acaff5c
Diffstat (limited to 'ref/api/time.html')
| -rw-r--r-- | ref/api/time.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ref/api/time.html b/ref/api/time.html index ee901c77..3be2a4e9 100644 --- a/ref/api/time.html +++ b/ref/api/time.html @@ -306,23 +306,23 @@ underlying system.</p> <h2 id="wait-asynchronously"><a class="header" href="#wait-asynchronously">Wait Asynchronously</a></h2> <pre><code class="language-c">void nng_sleep_aio(nng_duration msec, nng_aio *aio); </code></pre> -<p>It is possible to wait as the action on an <a href="../../api/aio.html#asynchronous-io-handle"><code>nng_aio</code></a>, which in effect +<p>It is possible to wait as the action on an <a href="../api/aio.html#asynchronous-io-handle"><code>nng_aio</code></a>, which in effect acts like <a name="a010"></a>scheduling a callback to run after a specified period of time.</p> <p>The <a name="a011"></a><code>nng_sleep_aio</code> function provides this capability. After <em>msec</em> milliseconds have passed, then <em>aio</em>’s callback will be executed. If this sleep waits without interruption, and then completes, the result from -<a href="../../api/aio.html#result-of-operation"><code>nng_aio_result</code></a> will be zero.</p> +<a href="../api/aio.html#result-of-operation"><code>nng_aio_result</code></a> will be zero.</p> <div class="mdbook-alerts mdbook-alerts-note"> <p class="mdbook-alerts-title"> <span class="mdbook-alerts-icon"></span> note </p> -<p>If a timeout shorter than <em>msec</em> is set on <em>aio</em> using <a href="../../api/aio.html#set-timeout"><code>nng_aio_set_timeout</code></a>, -then the sleep will wake up early, with a result code of <a href="../../api/errors.html#NNG_ETIMEDOUT"><code>NNG_ETIMEDOUT</code></a>.</p> +<p>If a timeout shorter than <em>msec</em> is set on <em>aio</em> using <a href="../api/aio.html#set-timeout"><code>nng_aio_set_timeout</code></a>, +then the sleep will wake up early, with a result code of <a href="../api/errors.html#NNG_ETIMEDOUT"><code>NNG_ETIMEDOUT</code></a>.</p> </div> <h2 id="see-also"><a class="header" href="#see-also">See Also</a></h2> -<p><a href="../../api/aio.html">Asynchronous Operations</a>, -<a href="../../api/synch.html">Synchronization</a></p> +<p><a href="../api/aio.html">Asynchronous Operations</a>, +<a href="../api/synch.html">Synchronization</a></p> <!-- NOTE: This assumes that any page referencing this is located in a directory two levels down. Meaning ./api/somefile.md or similar. mdbook cannot accommodate links that are called from |
