A procedure given for it is called as (procedure res object
cancellable).
Simple thread function that runs an asynchronous operation and checks for cancellation.
Passed: a <GSimpleAsyncResult>.
Passed: a <GObject>.
a <GObject>.
Passed: a <GCancellable>, or #f.
optional <GCancellable> object, #f to
ignore.