From: "halorgium (Tim Carey-Smith)" Date: 2013-04-04T08:47:53+09:00 Subject: [ruby-core:53974] [ruby-trunk - Feature #8215][Open] Support accessing Fiber-locals and backtraces for a Fiber Issue #8215 has been reported by halorgium (Tim Carey-Smith). ---------------------------------------- Feature #8215: Support accessing Fiber-locals and backtraces for a Fiber https://bugs.ruby-lang.org/issues/8215 Author: halorgium (Tim Carey-Smith) Status: Open Priority: Normal Assignee: Category: Target version: As part of debugging celluloid, I have been wanting to diagnose where the Fibers are running and their various locals. I would expect the following to work. Thread.current[:key] = "outside" fiber = Fiber.new do Thread.current[:key] = "inside" Fiber.yield end fiber.resume fiber[:key] == "inside" # true fiber.backtrace # ... I also wonder whether Fiber#[] should be implemented, so Fiber.current[:key] is possible. For reference, here is the issue on the rubinius issue tracker: https://github.com/rubinius/rubinius/issues/2200 -- http://bugs.ruby-lang.org/