nabto_client_future_error_code()

DESCRIPTION

Retrieve error code from a future.

DECLARATION

NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_future_error_code(NabtoClientFuture* future)

PARAMETERS

future:
the future.

RETURN VALUES

NABTO_CLIENT_EC_FUTURE_NOT_RESOLVED if the future is not resolved yet. NABTO_CLIENT_EC_* the error code of the async operation if the future is resolved

EXAMPLES

None.