nabto_device_future_error_code()

DESCRIPTION

Get the error code of the resolved future, if the future is not resolved, NABTO_DEVICE_EC_FUTURE_NOT_RESOLVED is returned.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_future_error_code(NabtoDeviceFuture* future)

PARAMETERS

future:
[in] The future.

RETURNS

NABTO_DEVICE_EC_FUTURE_NOT_RESOLVED if the future was not resolved. If the future is ready, the return value is whatever the underlying function returned.