Gio.IOStream.prototype.splice_async
function splice_async(stream2: Gio.IOStream, flags: Gio.IOStreamSpliceFlags, io_priority: Number(gint), cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_io_stream_splice_async() }
Asyncronously splice the output stream of stream1 to the input stream of stream2, and splice the output stream of stream2 to the input stream of stream1.
When the operation is finished callback will be called. You can then call Gio.IOStream.splice_finish to get the result of the operation.
Since 2.28
- stream2
a Gio.IOStream.
- flags
a set of Gio.IOStreamSpliceFlags.
- io_priority
the io priority of the request.
- cancellable
optional Gio.Cancellable object, null to ignore.
- callback