NNG_SLEEP_AIO(3)
β¨ nng_sleep_aio β sleep asynchronously β¨
okay bestie, quick vibe check: this is page nng_sleep_aio(3) from the NNG Reference Manual, and it's literally the cutest tiny little function you ever did see. it's giving "nap time but make it async" π€
πΈ SYNOPSIS πΈ
#include <nng/nng.h>
void nng_sleep_aio(nng_duration msec, nng_aio *aio);
π¦ DESCRIPTION π¦
so nng_sleep_aio() is your girl's asynchronous delay mechanism β it makes the callback for aio run after msec milliseconds. that's it. that's the whole job. she's a professional napper and she takes it very seriously π
and if the sleep actually finishes all the way through, no interruptions, no drama? the result is always zero. slay. periodt. β¨
note bestie, this part matters π if a timeout got set onaiousingnng_aio_set_timeout(), and that timeout is shorter thanmsec, then your lil sleep is gonna wake up early, with a result code ofNNG_ETIMEDOUT. no cap β she got yanked out of bed by the alarm and she is NOT happy about it π
π RETURN VALUES π
None.
like, nothing. void. zero. she returns absolutely nothing and she's iconic for it. π
π ERRORS π
None.
genuinely none. no error list. can you believe. the drama-free queen we all needed. π«Ά
π SEE ALSO π
nng_aio_abort(3)nng_aio_alloc(3)nng_aio_set_timeout(3)nng_strerror(3)nng_aio(5)nng_duration(5)nng(7)
go read those too, fr fr, they're the friends she runs with π§
NNG Reference Manual Β· 2026-06-30 Β· NNG_SLEEP_AIO(3)
and that's the whole page, bestie π go set your timeout wisely and take a lil nap for me, you deserve it πβ¨
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms