Description

Forces reading from source and writing to destination.

This executes a single read->write cycle if more data can be read from source (ie: not EOS) or not all data is written to destination, then false is returned. To forcefully drain source and write all contents to destination, use in a loop until it returns true.

The return value matches the "done" event: that is, when true is returned, the "done" event is emitted.

This function may also emit "progress" and "error" events.

@note this function may block the main loop execution until operations are complete! This is bad for usability as user interface or other operations may freeze. A better approach is to operate asynchronously and wait for the "done" event.

Since 1.19

Signature

flush {
    params {
        @in may_block: bool;
        @in ignore_line_delimiter: bool;
    }
    return: bool (true);
}

C signature

Eina_Bool efl_io_copier_flush(Eo *obj, Eina_Bool may_block, Eina_Bool ignore_line_delimiter);

Parameters

Implemented by

  • Efl.Io.Copier.flush