Dirk Meyer said the following, on 15/02/2008 10:07:
> Duncan Webb wrote:
>> BTW I like the async.wait() call it makes life much easier.
> 
> wait should be avoided because it calls step() again. Let me give you
> an example: you have a mainloop running (calling step). Now you are in
> a callback and call step() to wait. Inside wait you call step again
> which will call another callback that also uses step. This means, that
> the first step will not return until the second one is done! I hope
> you understand it. A traceback would be:
> 
> main
> step
> callback x
> wait
> step
> callback y
> wait
> step

Actually, I don't see it, but I guess that it blocks some where and
never returns?

It's a bit tricky in rel-1 to use the coroutines or callbacks in certain
places. I really need co-functions.

Duncan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to