HomePhabricator

efl_mono: Initial support for Futures/Promises

Authored by lauromoura on Apr 20 2018, 2:17 PM.

Description

efl_mono: Initial support for Futures/Promises

Summary:
Promise/Future cleanup:

In the promises, we use a wrapper Eina_Promise_Cancel_Cb to
invalidate the wrapper if it ever gets cancelled from outside. When
invalidating from C#, we can do it directly.

For the futures, likewise, in order to be able to invalidate the
wrapper when the chain it belongs to gets resolved we then() an
internal future with a callback to invalidate the wrapper we return to
C#. The return of this intermediate then() is the future we actually
return to the user.

Also added ECANCELED to the list of default eina.Errors
Depends on D6173

Reviewers: felipealmeida

Reviewed By: felipealmeida

Subscribers: cedric, zmike

Tags: efl

Differential Revision: https://phab.enlightenment.org/D6174

Details

Committed
lauromouraMay 17 2018, 12:56 PM
Reviewer
felipealmeida
Differential Revision
D6174: efl_mono: Initial support for Futures/Promises
Parents
rEFL95c8a7d28c2d: efl_mono: Fix eldbus warnings and typo.
Branches
Unknown
Tags
Unknown