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

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