Re: [Vala] threads in vala
- From: Eric Gregory <eric yorba org>
- To: Nadav Vinik <nadavvin gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] threads in vala
- Date: Wed, 19 Jun 2013 11:12:43 -0700
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]