Class: Async::Semaphore

Inherits:
Object
  • Object
show all
Defined in:
sig/_private/async.rbs

Instance Method Summary collapse

Constructor Details

#initializeSemaphore

Returns a new instance of Semaphore.

Parameters:

  • (Integer)
  • parent: (Object)


16
# File 'sig/_private/async.rbs', line 16

def initialize: (Integer, ?parent: untyped) -> void

Instance Method Details

#async { ... } ⇒ Object

Yields:

Yield Returns:

  • (void)

Returns:

  • (Object)


18
# File 'sig/_private/async.rbs', line 18

def async: () { () -> void } -> untyped