Re: [Vala] [Genie] Using async methods in Genie





Alex Stefan Kaye wrote on Saturday, 27 April 2013:


Is it possible to use Vala's async methods in Genie? If so, could 
someone give an example of the syntax to use?

I have not used them myself, but have made a few bookmarks when I was researching Genie:

https://mail.gnome.org/archives/vala-list/2011-February/msg00072.html - suggests it works and syntax for 
declaring a function is def async function_name ():


https://live.gnome.org/Vala/Tutorial#Asynchronous_Methods
    - hopefully Genie closely matches the Vala syntax such as the use of the yield keyword

Other bookmarks:
https://live.gnome.org/Vala/AsyncSamples
https://live.gnome.org/Vala/GIOSamples#Asynchronous_File_Listing
http://tecnocode.co.uk/2012/12/30/single-thread-synchronisation-in-vala/
https://mail.gnome.org/archives/vala-list/2011-July/msg00111.html

If you get it working a short write up of your code would be helpful,

Al


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