Fiber::Storage SourceFiber

class Fiber

Nested

Definitions

def self.__borked_keys__

Whether the fiber storage has buggy keys. Unfortunately the original implementation of fiber storage was broken, this method detects the bug and is used to apply a fix.

Implementation

def self.__borked_keys__
	!Fiber.new do
		key = :"#{self.object_id}.key"
		Fiber[key] = true
		Fiber[key]
	end.resume
end