A struct used to define a callback and data for a future. More...
|Called when the future is resolved or rejected. More...|
|const void *||data|
|Context data to |
|The storage will be used by Eina to store a pointer to the created future. More...|
A struct used to define a callback and data for a future.
This struct contains a future completion callback and a data to the future completion callback which is used by eina_future_then(), eina_future_chain() and friends to inform the user about the future result. The _Eina_Future_Desc::data variable should be freed when _Eina_Future_Desc::cb is called, otherwise it will leak.
NULLis returned) the _Eina_Future_Desc::cb will be called report an error like
ENOMEMso _Eina_Future_Desc::data can be freed.
Called when the future is resolved or rejected.
Once a future is resolved or rejected this function is called passing the future result to inform the user that the future operation has ended. Normally this function is called from a safe context (main loop or some platform defined safe context), however in case of a future cancellation (eina_future_cancel()) or if eina_future_then(), eina_future_chain() and friends fails to create a new future, this function is called from the current context.
Use this function to free
data if necessary.
|const void* _Eina_Future_Desc::data|
Context data to
data should be freed inside
cb, otherwise its memory will leak!
Referenced by eina_future_cb_console_from_desc().
The storage will be used by Eina to store a pointer to the created future.
It can be