class ActiveSupport::Concurrency::ShareLock

def stop_sharing

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

def stop_sharing: () -> Thread::ConditionVariable

This signature was generated using 6 samples from 1 application.

def stop_sharing
  synchronize do
    if @sharing[Thread.current] > 1
      @sharing[Thread.current] -= 1
    else
      @sharing.delete Thread.current
      @cv.broadcast
    end
  end
end