contentSerializeAsync

fnvoid contentSerializeAsync(gio.output_stream.OutputStream stream, string mimeType, gobject.value.Value value, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Serialize content and write it to the given output stream, asynchronously.

The default I/O priority is [glib.types.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 funcGdk.content_serialize_finish to get the result of the operation.

Parameters

streama [gio.output_stream.OutputStream] to write the serialized content to
mimeTypethe mime type to serialize to
valuethe content to serialize
ioPrioritythe I/O priority of the operation
cancellableoptional [gio.cancellable.Cancellable] object
callbackcallback to call when the operation is done