From 3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2 Mon Sep 17 00:00:00 2001 From: gdamore Date: Thu, 9 Oct 2025 00:01:13 +0000 Subject: deploy: d006acfdd44af4210e39f571fa32314bcd36bb40 --- ref/api/time.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'ref/api/time.html') 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.

Wait Asynchronously

void nng_sleep_aio(nng_duration msec, nng_aio *aio);
 
-

It is possible to wait as the action on an nng_aio, which in effect +

It is possible to wait as the action on an nng_aio, which in effect acts like scheduling a callback to run after a specified period of time.

The nng_sleep_aio function provides this capability. After msec milliseconds have passed, then aio’s callback will be executed. If this sleep waits without interruption, and then completes, the result from -nng_aio_result will be zero.

+nng_aio_result will be zero.

note

-

If a timeout shorter than msec is set on aio using nng_aio_set_timeout, -then the sleep will wake up early, with a result code of NNG_ETIMEDOUT.

+

If a timeout shorter than msec is set on aio using nng_aio_set_timeout, +then the sleep will wake up early, with a result code of NNG_ETIMEDOUT.

See Also

-

Asynchronous Operations, -Synchronization

+

Asynchronous Operations, +Synchronization

+ + -- cgit v1.2.3-70-g09d2