[ruby-core:63037] Re: [ruby-trunk - Feature #3944] Add Fiber#root? method

From: SASADA Koichi <ko1@...>
Date: 2014-06-10 03:08:22 UTC
List: ruby-core #63037
(2014/05/23 15:17), jjyruby@gmail.com wrote:
> For example, I want write a method, when under EM::Synchrony environment it should use EM::Synchrony call(in fact is async call, and writing in sync, power by fiber), and when under Fiber#root, it should use sync call, so I need detect whether current fiber is root fiber.

Could you break down the description?
I don't know EM::Synchrony.

Why you need to choose root or not root?

-- 
// SASADA Koichi at atdot dot net

In This Thread

Prev Next