diff options
| author | Patrik Wenger <patrik.wenger@mindclue.ch> | 2024-01-01 16:02:50 +0100 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-01-01 08:25:56 -0800 |
| commit | f00c0fd4a4b07946d2f60dee8a1b4fb4221d5470 (patch) | |
| tree | 3951068e74da4d05c9ee7902ff440002fd2e5d4e | |
| parent | 838c9eab97c9d954354db711faae8a1fa6c12d38 (diff) | |
| download | nng-f00c0fd4a4b07946d2f60dee8a1b4fb4221d5470.tar.gz nng-f00c0fd4a4b07946d2f60dee8a1b4fb4221d5470.tar.bz2 nng-f00c0fd4a4b07946d2f60dee8a1b4fb4221d5470.zip | |
fix grammar
| -rw-r--r-- | docs/man/nng_aio_free.3.adoc | 2 | ||||
| -rw-r--r-- | docs/man/nng_aio_stop.3.adoc | 4 |
2 files changed, 3 insertions, 3 deletions
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 |
