Description

Connects a future output to this promise.

This helper will automatically trigger #value.set or #failed.set when the future succeeds or fails respectively, with the value provided by the future.

Signature

connect {
    params {
        @in f: free(future<void_ptr, void_ptr>, efl_del);
    }
    return: bool;
}

C signature

Eina_Bool efl_promise_connect(Eo *obj, Efl_Future *f);

Parameters

  • f (in) - The future to connect to this promise.

Implemented by

  • Efl.Promise.connect