Re: [Vala] Combining async methods with external processes



You can attach the .callback to any event source in the same way. So e.g.
when data arrive from the process or the child terminates etc.

But it's easy to wrap it in one. Just spawn_async_with_pipes and arrange the
.callback to be called when results are available and yield.

I think I got this working, it's compiling OK and it runs as expected
up until the last task is completed. But then it segfaults on some of
the generated C code. I'll try and make a test case later, as the
actual code is fairly convoluted.

Cheers
James



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