class

Symphony::AwaitableSignal

Inherits Reference < Object

Instance methods

done!

Marks the signal as completed. All fibers that are waiting for it will be woken up.

Calling it multiple times is safe. The first call will return true, but all calls after that will return false.

Source
done?

Nonblocking check if the signal is completed.

Source
wait

Block until completed. If it is already completed, it will return immediately.

Source
wait_or_timeout(max_wait : Time::Span | Nil) : Nil

Waits for completions (0 disables the timeout). If it is already completed, it will return immediately.

Source