splice_async


Description:

[ CCode ( finish_instance = false ) ]
[ Version ( since = "2.28" ) ]
public async bool splice_async (IOStream stream2, IOStreamSpliceFlags flags, int io_priority = DEFAULT, Cancellable? cancellable = null) throws Error

Asynchronously splice the output stream of this to the input stream of stream2, and splice the output stream of stream2 to the input stream of this.

When the operation is finished callback will be called. You can then call splice_async.end to get the result of the operation.

Parameters:

this

a IOStream.

stream2

a IOStream.

flags

a set of IOStreamSpliceFlags.

io_priority

the io priority of the request.

cancellable

optional Cancellable object, null to ignore.

callback

a TaskReadyCallback to call when the request is satisfied

user_data

the data to pass to callback function