Re: [Vala] How to do a timedout async method



Hello Matias
Is this what you are looking for?
This only works with async methods that release the mainloop in between.
Please see attached file.
Compiled with:
valac --pkg gio-2.0 async2.vala
Regards
Jörn





Basically I want to call an async method that waits for a response from
some object. But, if after, lets say 2 seconds, it don't receive a
response, return an error.

I attached a test case of what i think it can work, but i don't know how
to resume/cancel an async method...

Any help is welcome
Thanks
Matias
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list

Attachment: async2.vala
Description: Text Data



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