Efl.Promise (class)


Efl promise class




Connects a future output to this promise.
Eina_Bool efl_promise_connect(Eo *obj, Efl_Future *f);

constructor [Overridden from Efl.Object]

Call the object's constructor.
Efl_Object *efl_constructor(Eo *obj);

destructor [Overridden from Efl.Object]

Call the object's destructor.
void efl_destructor(Eo *obj);

failed (set)

Defines the failure state of this promise.
void efl_promise_failed_set(Eo *obj, Eina_Error err);

future (get)

Requests a new future linked to this promise.
Efl_Future *efl_promise_future_get(const Eo *obj);

parent (get, set) [Overridden from Efl.Object]

The parent of an object.
Efl_Object *efl_parent_get(const Eo *obj);
void efl_parent_set(Eo *obj, Efl_Object *parent);


Updates progress and sends it immediately to all connected Efl_Future.
void efl_promise_progress_set(Eo *obj, const void *p);

value (set)

The value expected by all connected future.
void efl_promise_value_set(Eo *obj, void *v, Eina_Free_Cb free_cb);


loop (get) The loop to which this object belongs to.
allow_parent_unref (get, set) Allow an object to be deleted by unref even if it has a parent.
children_iterator_new Get an iterator on all childrens
comment (get, set) A human readable comment for the object
composite_attach Make an object a composite object of another.
composite_detach Detach a composite object from another object.
composite_part_is Check if an object is part of a composite object.
debug_name_override Build a read-only name for this object used for debugging.
del Unrefs the object and reparents it to NULL.
event_callback_forwarder_add Add an event callback forwarder for an event and an object.
event_callback_forwarder_del Remove an event callback forwarder for an event and an object.
event_callback_stop Stop the current callback call.
event_freeze Freeze events of object.
event_freeze_count (get) Return freeze events of object.
class event_global_freeze Freeze events of object.
class event_global_freeze_count (get) Return freeze events of object.
class event_global_thaw Thaw events of object.
event_thaw Thaw events of object.
finalize Called at the end of efl_add. Should not be called, just overridden.
finalized (get) True if the object is already finalized, otherwise false.
name (get, set) The name of the object.
name_find Find a child object with the given name and return it.
provider_find Searches upwards in the object tree for a provider which knows the given class/interface.



This event is triggered whenever there are no more futures connected to the promise.


This event is triggered whenever a future has a progress callback registered and the user holds no more reference to it.


This event is triggered whenever a future is fully set to receive all events and the user holds no more references to it.


callback,add A callback was added.
callback,del A callback was deleted.
del Object is being deleted.
destruct Object has been fully destroyed. It can not be used beyond this point. This event should only serve to clean up any dangling pointer.