lua-users home
lua-l archive

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

What is the relationship between hook procs and coroutines?

My read of the source suggests that existing hooks are propagated when
creating new coroutines, but if one sets a hook it only affects a particular
Lua state.

This would seem to mean that the alarm function won't actually run until
we're back executing the coroutine in which it was set. Is this a correct