class ActiveSupport::Concurrency::ShareLock

def wait_for(method, &block)

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

def wait_for: (Symbol method, ) -> nil

This signature was generated using 63 samples from 1 application.

def wait_for(method, &block)
  @sleeping[Thread.current] = method
  @cv.wait_while(&block)
ensure
  @sleeping.delete Thread.current
end