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



Luca Bruno wrote:
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.

Thanks.

I've created a new page on the wiki trying to make the 'async' stuff
easier to understand:

  http://live.gnome.org/Vala/AsyncMethods

I've added the old GIO example (updated to shutdown nicely), a
Generator example, and an example that starts a background thread.

I'm not sure what the procedure is for documentation, or who owns
what.  This page could be merged with the Tutorial if someone thinks
that is a good idea.

If there is anything incorrect, I'm happy to fix it --

Jim

-- 
 Jim Peters                  (_)/=\~/_(_)                 jim uazu net
                          (_)  /=\  ~/_  (_)
 UazĂș                  (_)    /=\    ~/_    (_)                http://
 in Peru            (_) ____ /=\ ____ ~/_ ____ (_)            uazu.net



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