eio: simplify code by using helper that generate future directly.

The new helper help replace call to eina_future_resolved and eina_future_rejected with
a scheduler lookup to just one function call.

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7339
This commit is contained in:
Cedric BAIL 2018-11-22 17:14:16 -08:00
parent 1c238298ee
commit 221600ea10
1 changed files with 2 additions and 2 deletions

View File

@ -696,14 +696,14 @@ _eio_model_efl_model_property_set(Eo *obj,
}
else
{
f = eina_future_resolved(efl_loop_future_scheduler_get(obj),
f = efl_loop_future_resolved(obj,
eina_value_string_init(pd->path));
}
return efl_future_then(obj, f);
on_error:
return eina_future_rejected(efl_loop_future_scheduler_get(obj), err);
return efl_loop_future_rejected(obj, err);
}
static void