Class: Fiber Private

Inherits:
Object show all
Defined in:
sorbet/rbi/shims/fiber.rbi

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Sorbet's core RBI for Fiber is missing initialize so does not know Fiber.new takes a block.

Instance Method Summary collapse

Constructor Details

#initialize(&blk) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • blk (T.proc.returns(T.untyped))


7
# File 'sorbet/rbi/shims/fiber.rbi', line 7

def initialize(&blk); end