dwbutler (David Butler)
- Login: dwbutler
- Registered on: 12/06/2016
- Last sign in: 12/06/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
12/06/2016
-
12:45 AM Ruby Feature #13009 (Closed): Implement fetch for Thread.current
- It's a common idiom to use a fiber-local variable, but return a default value if it hasn't been assigned. Here's an example of Ruby code I would expect to be able to write:
~~~ ruby
def feature_enabled?
Thread.current.fetch(:featu...