Skip to content

Instantly share code, notes, and snippets.

View qw3r's full-sized avatar

István Demeter qw3r

  • Emarsys
  • 12:41 (UTC +02:00)
View GitHub Profile
Thread.current[:foo] = 3
p Thread.current[:foo] # prints 3
Fiber.new {
Thread.current[:foo] = 4
p Thread.current[:foo] # prints 4
}.resume
p Thread.current[:foo] # prints 3