Re: [Vala] How to test async methods?



You need a MainLoop to run async methods in vala

On Tue, Feb 16, 2016, 8:19 AM marcin saepia net <marcin saepia net> wrote:

Hello,

I need some advice on testing async methods.

When I run .begin() in the isolated test suite (where mainloop is not
running) it seems that .end() callback never gets called.

What is the best way to trigger running async methods? Should I just spawn
mainloop on purpose or is there any clearer way to do this?

Thank you in advance,

Marcin
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list



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