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?

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 years ago

I feel like this could make some sort of memory leak if done too much. Not completely sure.

  • source