Parser.loadFromStreamAsync

void loadFromStreamAsync(gio.input_stream.InputStream stream, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Asynchronously reads the contents of a stream.

For more details, see [json.parser.Parser.loadFromStream], which is the synchronous version of this call.

When the operation is finished, callback will be called. You should then call [json.parser.Parser.loadFromStreamFinish] to get the result of the operation.

Parameters

streamthe input stream with the JSON data
cancellablea #GCancellable
callbackthe function to call when the request is satisfied