The problem is not gtask but how vala generate the c code to manage yield.
In this moment yield need that the control go back to the mainloop almost one
time.
Il mer nov 23 02:41:14 2016 GMT+0100, Nor Jaidi Tuah scrive:
>
> > 1. Treat it as a documentation bug and make it clear async code
> >
> 1. Treat it as a documentation bug and make it clear async code
> requires a GMainContext and to be used asynchronously to work
> reliably in all cases
>
Totally confused here. I checked gtask.c and apparently
it is designed to handle synchronous task too.
* SECTION:gtask
*
> - Original Message -
> From: Michele Dionisio
> Sent: Tuesday, 22 November 2016, 0:32
> Subject: Re: [Vala] [Announcement] Vala will use GTask for async code instead
> of GSimpleAsyncResult if --target-glib=2.36 or greater is selected
> few weeks ago I