[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: coroutines & timeout
- From: "wilfried.verachtert@..." <wilfried.verachtert@...>
- Date: Wed, 14 Apr 2004 22:41:43 -0400
Alex,
Thanks for your swift response.
> instead of
> co_1 = coroutine.create(function () person:display() end) try
> co_1 = coroutine.create(function ()
> pcall(person.display, person) end) and so on.
>
> Is the output the same as before?
>
> Alex
>
No it isn't!
It reads like ...
-------------------------------
>>
nil
nil
<person>
<<
nil
nil
<person>
-
+
-
+
-
+
-
<object>
+
-
+
true
true 9227465
-------------------------------
That's consistent with your remark. The first coroutine will finish
regardless of the time-out. That's not very nice indeed.
At least I understand the 'dificult' part now before jumping into lots of
work. That was the original intent of my post.
So, thanks again.
Wilfried Verachtert
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .