{
promise->promise.then_callbacks = eina_inlist_remove(promise->promise.then_callbacks, EINA_INLIST_GET(callback));
if (error)
- {
- if (callback->error_cb)
- (*callback->error_cb)(callback->data, promise->promise.error, &promise->promise.vtable);
- }
+ {
+ if (callback->error_cb)
+ (*callback->error_cb)(callback->data, promise->promise.error, &promise->promise.vtable);
+ }
else if (callback->callback)
- {
- (*callback->callback)(callback->data, &promise->value[0], &promise->promise.vtable);
- }
+ {
+ (*callback->callback)(callback->data, &promise->value[0], &promise->promise.vtable);
+ }
free(callback);
_eina_promise_unref(&promise->promise);
}
{
_eina_promise_then_calls(promise);
}
- if(promise->promise.ref == 0)
- {
- _eina_promise_del(promise);
- }
}
static Eina_Error