lua-users home
lua-l archive

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


"Alexandr Leykin" <leykina@gmail.com> writes:

> I  will propose simple-coroutine:
>
> do
>  --block1
>  some code
> end
> also
> do
>  -- block2
>  some again
> end
>
> also - keyword.
> block1 and block2 will be running together (in different thread)

That's not "coroutine" but "multithreading".  The whole point of
coroutines is that control is passed synchronously, and that is what Lua
"threads" do.

-- 
David Kastrup