I have a question regarding GTasks and their GAsyncReadyCallback callbacks.
If a task is cancelled, it appears that the ready callback is not called. I can kind of see the reasoning here as the task is, technically, not finished it’s work successfully. However, this means that there is no callback called when the a task that is run in a thread (g_task_run_in_thread()) exits.
So, if I wanted to be able to stop a task running in a background thread and wait until that thread exists, how would I go about this? g_task_get_completed() doesn’t seem to work even though I can confirm that g_task_return_boolean is being called on the GTask.