Re: [Vala] Documenting 'async' / WAS: Further speculations on couroutines, generators and threads : Emulating Go's goroutines and channels in Vala



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]