Gio.OutputStream.prototype.splice_async
function splice_async(source: Gio.InputStream, flags: Gio.OutputStreamSpliceFlags, io_priority: Number(gint), cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_output_stream_splice_async() }
Splices a stream asynchronously. When the operation is finished callback will be called. You can then call Gio.OutputStream.prototype.splice_finish to get the result of the operation.
For the synchronous, blocking version of this function, see Gio.OutputStream.prototype.splice.
- source
- flags
a set of Gio.OutputStreamSpliceFlags.
- io_priority
the io priority of the request.
- cancellable
optional Gio.Cancellable object, null to ignore.
- callback