[Vala] How to do a timedout async method



Hello list,

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

Attachment: async.vala
Description: Text Data



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