public async bool write_all_async (uint8 buffer, int io_priority, Cancellable? cancellable, out size_t bytes_written) throws Error
Request an asynchronous write of
buffer.length bytes from
buffer into the stream.
When the operation is finished
callback will be called. You can then call write_all_async.end to get
the result of the operation.
This is the asynchronous version of write_all.
Call write_all_async.end to collect the result.
Any outstanding I/O request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is g_priority_default.
Note that no copy of
buffer will be made, so it must stay valid until
callback is called.
the buffer containing the data to write
the io priority of the request
optional Cancellable object, null to ignore
callback to call when the request is satisfied
the number of bytes to write
the data to pass to callback function