NNG_SLEEP_AIO(3)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

✨ 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 on aio using nng_aio_set_timeout(), and that timeout is shorter than msec, then your lil sleep is gonna wake up early, with a result code of NNG_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 🌈

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