nabto_client_future_timed_wait()

DESCRIPTION

Wait atmost duration milliseconds for the future to be resolved.

DECLARATION

NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_future_timed_wait(NabtoClientFuture* future, nabto_client_duration_t duration)

PARAMETERS

future:
[in] The future.
duration:
[in] The duration.

RETURN VALUES

NABTO_CLIENT_EC_FUTURE_NOT_RESOLVED if the future is not resolved yet when the timer expires NABTO_CLIENT_EC_* the error code of the async operation if the future is resolved NABTO_CLIENT_EC_COULD_BLOCK if called from a future callback.

EXAMPLES

None.