Re: [Vala] [Async] why use .begin ?

Jan Hudec wrote:
I can imagine a special syntax that will make vala generate this might be
accepted in future. My suggestion would be

    var result = yield sync foo_async();

I guess I would propose:

var result = foo_async();

We talked about that on IRC today with Jürg, and it may be possible to
implement such a thing, correctly with
g_main_context_push_thread_default() (GLib 2.21).


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]