class Concurrent::Event

def wait(timeout = nil)

Experimental RBS support (using type sampling data from the type_fusion project).

def wait: (?Float timeout) -> untyped

This signature was generated using 1 sample from 1 application.

Returns:
  • (Boolean) - true if the `Event` was set before timeout else false
def wait(timeout = nil)
  synchronize do
    unless @set
      iteration = @iteration
      ns_wait_until(timeout) { iteration < @iteration || @set }
    else
      true
    end
  end
end