[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: How to swap coroutine ?
- From: Gaspard Bucher <gaspard@...>
- Date: Mon, 12 Sep 2011 19:14:21 +0200
Hi list !
I would like to create a coroutine and then continue execution in the coroutine so that the original calling code can yield.
co = coroutine.create(function()
-- co == main running code (B)
-- transform running thread into a coroutine and continue execution in "A"
Is this possible ?