file
's contents.gFileLoadContentsAsync(object, cancellable = NULL, callback, user.data = NULL)
object
GFile
.cancellable
GCancellable
object, NULL
to ignore.callback
GAsyncReadyCallback
to call when the request is satisfieduser.data
gFileLoadContents
which is
the synchronous version of this call.
When the load operation has completed, callback
will be called
with user
data. To finish the operation, call
gFileLoadContentsFinish
with the GAsyncResult
returned by
the callback
.
If cancellable
is not NULL
, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error G_IO_ERROR_CANCELLED
will be returned.