struct CassFuture
The future result of an operation.
It can represent a result if the operation completed successfully or an error if the operation failed. It can be waited on, polled or a callback can be attached.
Functions
Frees a future instance. A future can be freed anytime.
CassError
cass_future_set_callback
(CassFuture *
future, CassFutureCallback
callback, void *
data )
Sets a callback that is called when a future is set
Gets the set status of the future.
Wait for the future to be set with either a result or error.
Important: Do not wait in a future callback. Waiting in a future callback will cause a deadlock.
Wait for the future to be set or timeout.
Gets the result of a successful future. If the future is not ready this method will wait for the future to be set. The first successful call consumes the future, all subsequent calls will return NULL.
Gets the result of a successful future. If the future is not ready this method will wait for the future to be set. The first successful call consumes the future, all subsequent calls will return NULL.
Gets the error code from future. If the future is not ready this method will wait for the future to be set.
Gets the error message from future. If the future is not ready this method will wait for the future to be set.