Efl.Loop_Consumer.future_rejected

Description

Creates a new future that is already rejected to a specified error using the Efl.Loop_Consumer.loop.get.

This function creates a new future with an already known error, that will be resolved and dispatched by the loop scheduler as usual.

This is a helper that behaves the same as @ref eina_future_rejected.

Since 1.22

Signature

future_rejected @const {
    params {
        @in error: Eina.Error;
    }
    return: future<Eina.Error>;
}

C signature

Eina_Future *efl_loop_future_rejected(const Eo *obj, Eina_Error error);

Parameters

  • error (in) - An Eina_Error value

Implemented by