Method: Async::Semaphore#empty?

Defined in:
lib/async/semaphore.rb

#empty?Boolean

Is the semaphore currently acquired?

Returns:

  • (Boolean)

51
52
53
# File 'lib/async/semaphore.rb', line 51

def empty?
	@count.zero?
end