From 3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2 Mon Sep 17 00:00:00 2001
From: gdamore
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.