diff options
| author | gdamore <gdamore@users.noreply.github.com> | 2025-10-09 00:01:13 +0000 |
|---|---|---|
| committer | gdamore <gdamore@users.noreply.github.com> | 2025-10-09 00:01:13 +0000 |
| commit | 3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2 (patch) | |
| tree | 08e14b1a16f98e0bae2a6a4ea16cbd1fa20bdf2f /ref/api/time.html | |
| parent | 35df6a2f9a33084b71b24ab31197da81e6486078 (diff) | |
| download | nng-3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2.tar.gz nng-3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2.tar.bz2 nng-3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2.zip | |
deploy: d006acfdd44af4210e39f571fa32314bcd36bb40
Diffstat (limited to 'ref/api/time.html')
| -rw-r--r-- | ref/api/time.html | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/ref/api/time.html b/ref/api/time.html index a64a3bb3..ee901c77 100644 --- a/ref/api/time.html +++ b/ref/api/time.html @@ -306,26 +306,31 @@ 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 + different levels in the hierarchy. --> <!-- Symbol cross reference --> <!-- HTTP --> <!-- HTTP Status --> +<!-- TLS --> <!-- Macros --> <!-- Protocols --> <!-- Transports --> |
