I’m curious what happens if you use await for a signal, but the signal is never received? Does this cause some kind of hangup?
For example if I have a function structured like so:
func foo():
do something
await signal.finished
do something else
And the “finished” signal never comes, does the await call just hang indefinitely?
Just tried this out in one of my projects, here’s what happened:
do something
works without a problem.do something else
never goes off.foo()
again any number of times anddo something
will still go off.Having it waiting in the background didn’t seem to have much of a performance impact. I started 5000+ of them and
foo()
only took up ~0.6% frametime with the rest of my game running alongside it.