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.

RETURNS

  • NABTO_CLIENT_EC_FUTURE_NOT_RESOLVED: if the future is not resolved yet when the timer expires
  • NABTO_CLIENT_EC_:
  • NABTO_CLIENT_EC_COULD_BLOCK: if called from a future callback.