summaryrefslogtreecommitdiffstats
path: root/src/gtask-helper.c
Commit message (Collapse)AuthorAgeFilesLines
* Introduce gtask-helper.[ch]wip/gtask-helperFabiano FidĂȘncio2016-03-231-0/+152
As noticed, GTask's heurestic for return a task in idle or immediately doesn't work when using Coroutine and that's okay, we just need to do the idle ourself. And in order to avoid code duplication, let's introduce and make usage of the new g_task_helper_return_* functions. These functions match exactly with the existing g_task_return_* functions and the only difference is that they return on idle instead of returning immediately. Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>