class Concurrent::Promises::ResolvableEvent

def wait(timeout = nil, resolve_on_timeout = false)

Other tags:
    See: AbstractEventFuture#wait -

Returns:
  • (self, true, false) -

Parameters:
  • resolve_on_timeout (true, false) --
def wait(timeout = nil, resolve_on_timeout = false)
  super(timeout) or if resolve_on_timeout
                      # if it fails to resolve it was resolved in the meantime
                      # so return true as if there was no timeout
                      !resolve(false)
                    else
                      false
                    end
end