lua-users home
lua-l archive

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



On 2020-08-16 11:17 p.m., Egor Skriptunoff wrote:
> On Mon, Aug 17, 2020 at 4:06 AM Soni "They/Them" L. wrote:
>
>     as long as you can get it to yield
>
>
> Can I yield from a hook?
>
You cannot. Well, you can, but you can't serialize those. You also
cannot use arbitrary libraries. You need to design your libraries around
it, and at that point you might as well add "external" yield points into
them.

I'd be extremely surprised if you could serialize arbitrary libraries.