Eventu: Safe Signals?
Posted: 26 Mar 2016, 3:21
If I send a signal before a coroutine is waiting for it, it throws an error. I think there should be a built-in safety for this function. It could simply be this condition:
(I see somebody made it so TAB can be used in a code box. Nice
)
Also, there doesn't seem to be a function for testing if a coroutine is currently running. This may be useful for preventing multiple instances of a coroutine from running at the same time.
Code: Select all
**NOT ACTUAL CODE**
If a coroutine is awaiting this signal then
send the signal
end
)Also, there doesn't seem to be a function for testing if a coroutine is currently running. This may be useful for preventing multiple instances of a coroutine from running at the same time.