Project

General

Profile

Actions

Feature #3944

closed

Add Fiber#root? method

Added by mperham (Mike Perham) over 13 years ago. Updated about 7 years ago.

Status:
Rejected
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

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0