Yields the calling thread until the signal next fires, then resumes with the arguments that fire carried. A clean way to wait for a one-off event without a connection.

Returns

any
Whatever the next fire passed.

Example

Errors

  • fire: what wakes a waiting thread.