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:


or like this:


or like this:

   method.begin((obj, 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.

-- - The Universal Operating System

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