From f00c0fd4a4b07946d2f60dee8a1b4fb4221d5470 Mon Sep 17 00:00:00 2001 From: Patrik Wenger Date: Mon, 1 Jan 2024 16:02:50 +0100 Subject: fix grammar --- docs/man/nng_aio_free.3.adoc | 2 +- docs/man/nng_aio_stop.3.adoc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/man/nng_aio_free.3.adoc b/docs/man/nng_aio_free.3.adoc index a8c5f566..c2528633 100644 --- a/docs/man/nng_aio_free.3.adoc +++ b/docs/man/nng_aio_free.3.adoc @@ -32,7 +32,7 @@ that it is safe to deallocate the handle and any associated resources. (This is done by implicitly calling xref:nng_aio_stop.3.adoc[`nng_aio_stop()`].) The `nng_aio_reap()` function is the same as `nng_aio_free()`, but does -it's work in a background thread. +its work in a background thread. This can be useful to discard the _aio_ object from within the callback for the _aio_. IMPORTANT: Once either of these functions are called, the _aio_ object is invalid and must not be used again. diff --git a/docs/man/nng_aio_stop.3.adoc b/docs/man/nng_aio_stop.3.adoc index 94787272..2b70726b 100644 --- a/docs/man/nng_aio_stop.3.adoc +++ b/docs/man/nng_aio_stop.3.adoc @@ -26,7 +26,7 @@ void nng_aio_stop(nng_aio *aio); The `nng_aio_stop()` function stops the asynchronous I/O operation associated with _aio_ by aborting with `NNG_ECANCELED`, and then waits -for it to complete or to be completely aborted, and for the any +for it to complete or to be completely aborted, and for the callback associated with the _aio_ to have completed executing. Further calls to @@ -38,7 +38,7 @@ pending for it. TIP: When multiple asynchronous I/O handles are in use and need to be shut down, it is safest to stop all of them, before deallocating any of -this with xref:nng_aio_free.3.adoc[`nng_aio_free()`], particularly if the callbacks +them with xref:nng_aio_free.3.adoc[`nng_aio_free()`], particularly if the callbacks might attempt to reschedule additional operations. == RETURN VALUES -- cgit v1.2.3-70-g09d2