FileLoader.loadAsync

void loadAsync(int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.FileProgressCallback progressCallback = null, gio.types.AsyncReadyCallback callback = null)

Loads asynchronously the file or input stream contents into the #GtkSourceBuffer. See the #GAsyncResult documentation to know how to use this function.

Parameters

ioPrioritythe I/O priority of the request. E.g. glib.types.PRIORITY_LOW, glib.types.PRIORITY_DEFAULT or glib.types.PRIORITY_HIGH.
cancellableoptional #GCancellable object, null to ignore.
progressCallbackfunction to call back with progress information, or null if progress information is not needed.
callbacka #GAsyncReadyCallback to call when the request is satisfied.