class RSpec::Support::ReentrantMutex

def exit

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

def exit: () -> RSpec::Support::Mutex

This signature was generated using 2 samples from 1 application.

def exit
  unless @mutex.owned?
    raise ThreadError, "Attempt to unlock a mutex which is locked by another thread/fiber"
  end
  @count -= 1
  @mutex.unlock if @count == 0
end