content_deserialize_async


Description:


public async bool content_deserialize_async (InputStream stream, string mime_type, Type type, int io_priority, Cancellable? cancellable, out Value value) throws Error

Read content from the given input stream and deserialize it, asynchronously.

The default I/O priority is g_priority_default (i.e. 0), and lower numbers indicate a higher priority.

When the operation is finished, callback will be called. You must then call [[email protected]_deserialize_finish] to get the result of the operation.

Parameters:

stream

a `GInputStream` to read the serialized content from

mime_type

the mime type to deserialize from

type

the GType to deserialize from

io_priority

the I/O priority of the operation

cancellable

optional `GCancellable` object

callback

callback to call when the operation is done

user_data

data to pass to the callback function


Namespace: Gdk
Package: gtk4



2022 vala-language.org