Re: [Vala] Documenting 'async' / WAS: Further speculations on couroutines, generators and threads : Emulating Go's goroutines and channels in Vala
- From: Luca Bruno <lethalman88 gmail com>
- To: Jim Peters <jim uazu net>
- Cc: Serge Hulne <serge hulne gmail com>, vala-list <vala-list gnome org>, Alexandre Rosenfeld <alexandre rosenfeld gmail com>
- Subject: Re: [Vala] Documenting 'async' / WAS: Further speculations on couroutines, generators and threads : Emulating Go's goroutines and channels in Vala
- Date: Fri, 15 Jul 2011 21:33:52 +0200
On Fri, Jul 15, 2011 at 11:34:17AM -0500, Jim Peters wrote:
Can you rephrase?
We can call 'method' either like this:
method();
or like this:
method.begin();
or like this:
method.begin((obj, res) => {
method.end(res);
});
In the first two cases, is the .end() handled automatically? Looking
at the generated code, it doesn't seem so. Could this be a problem?
For example, could this cause a leak?
It's not a problem.
--
http://www.debian.org - The Universal Operating System
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]