From 6096172cf3630dbc5366a85fe89fb361b4f40fae Mon Sep 17 00:00:00 2001 From: gdamore Date: Sun, 27 Oct 2024 19:43:14 +0000 Subject: deploy: c699588c5e68880b8fd890711a4f7cca2b49a0bc --- ref/api/time.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ref/api/time.html') diff --git a/ref/api/time.html b/ref/api/time.html index f3bf9685..43a52fb6 100644 --- a/ref/api/time.html +++ b/ref/api/time.html @@ -304,18 +304,18 @@ 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, +

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

-- cgit v1.2.3-70-g09d2