Re: [Vala] threads in vala



On Tue, Jun 18, 2013 at 10:39 PM, Nadav Vinik <nadavvin gmail com> wrote:


Does the async method is not a real thread?


No, as the name suggests it's an asynchronous method.  If you need threads,
have a look at GLib.Thread:
http://www.valadoc.org/#!api=glib-2.0/GLib.Thread

Regarding the yield error, note that yields must be inside an async method
-- I'm not entirely sure how anonymous methods work in Vala but I don't
believe it's possible to use them asynchronously.

 - Eric


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