nanomsg next generation NNG  
Home GitHub Documentation

This documentation is for version v1.2.2 of nng, but the latest released version is v1.8.0. see the documentation for v1.8.0 for the most up-to-date information.
nng_sleep_aio(3)

SYNOPSIS

#include <nng/nng.h>

void nng_sleep_aio(nng_duration msec, nng_aio *aio);

DESCRIPTION

The nng_sleep_aio() function performs an asynchronous “sleep”, causing the callback for aio to be executed after msec milliseconds. If the sleep finishes completely, the result will always be zero.

If a timeout is set on aio using nng_aio_set_timeout(), and it is shorter than msec, then the sleep will wake up early, with a result code of NNG_ETIMEDOUT.

RETURN VALUES

None.

ERRORS

None.

NNG Reference Manual vv1.2.2 © 2019 Staysail Systems, Inc, © 2018 Capitar IT Group BV
This document is supplied under the MIT License.
nanomsg™ and nng™ are trademarks of Garrett D'Amore.