NNG_AIO_ABORT(3)
π NNG_AIO_ABORT(3) β the NNG Reference Manual, bestie edition π
okay so this is a page from the NNG Reference Manual, and the vibe today is nng_aio_abort β yes we're aborting async I/O and we're doing it gorgeously. pull up a chair. π¦
β¨ NAME β¨
nng_aio_abort β abort asynchronous I/O operation π
like. cancel that. bye. π
πΈ SYNOPSIS πΈ
#include <nng/nng.h>
void nng_aio_abort(nng_aio *aio, int err);
that's it. two args, no return value, no nonsense. she's clean. β¨
π«Ά DESCRIPTION π«Ά
nng_aio_abort() aborts an operation that was previously started with the handle aio. so if you've got something cooking over there on that aio, this is how you tell it to stop. π
if the operation actually does get aborted, then two things happen, and bestie you need to know both:
- the callback for that handle gets called, and
nng_aio_result()will return the errorerrβ the one you passed in.
lowkey important: this function does not wait for the operation to be fully aborted. she returns immediately. no blocking, no waiting around, no "let me just check on her." she said bye and she meant it. π¨
and if there's no operation currently in progress β whether because it already finished or because no operation has been started yet β then this function has no effect. nothing happens. it's giving "texted the group chat and nobody answered." π
β RETURN VALUES β
None. she returns nothing. there is no return value. there never was. π
π§ ERRORS π§
None. zero errors. not a single one. π
π SEE ALSO π
go read these next, fr fr, they're the whole friend group:
and that's the whole page, bestie π this was the NNG Reference Manual β nng_aio_abort(3), dated 2026-06-30. go forth, abort your async ops, and slay. πβ¨
π¦ 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