Project

General

Profile

Actions

Feature #3944

closed

Add Fiber#root? method

Added by mperham (Mike Perham) over 11 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Normal
Target version:
-
[ruby-core:32777]

Description

Since the root fiber is treated differently than other Fibers (e.g. you can't yield from the root), code which can optionally use fibers for high-performance IO (in my case, the Mysql2 driver) needs Fiber#root? to know when it can use Fibers to execute a query versus using a standard blocking call.

Actions

Also available in: Atom PDF