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?

  • s12@sopuli.xyz
    link
    fedilink
    arrow-up
    1
    ·
    10 months ago

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