Efl.Loop_Consumer.future_resolved

Description

Creates a new future that is already resolved to a value.

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

This is a helper that behaves the same as eina_future_resolved.

Since 1.22

Signature

future_resolved @const {
    params {
        @in result: any_value;
    }
    return: future<any_value>;
}

C signature

Eina_Future *efl_loop_future_resolved(const Eo *obj, Eina_Value result);

Parameters

  • result (in) - The value to be delivered.

Note that the value contents must survive this function scope, that is, do not use stack allocated blobs, arrays, structures or types that keep references to memory you give. Values will be automatically cleaned up using @ref eina_value_flush() once they are unused (no more future or futures returned a new value)

Note that the value contents must survive this function scope, that is, do not use stack allocated blobs, arrays, structures or types that keep references to memory you give. Values will be automatically cleaned up using @ref eina_value_flush() once they are unused (no more future or futures returned a new value)

Implemented by