Skip to content

Instantly share code, notes, and snippets.

View paschelino's full-sized avatar

Pascal Erb paschelino

  • Clark.de
  • Frankfurt am Main, Germany
View GitHub Profile
@paschelino
paschelino / heartbreaking_fiber_transfer.rb
Last active May 13, 2021 12:12
When ruby is breaking my heart – episode 1: When Fiber#transfer is doing what you expect – not.
# When ruby is breaking my heart – episode 1: When Fiber#transfer is doing what you expect – not.
# ===============================================================================================
#
# (Don't know, if there ever will be an episode 2 :-b)
require 'fiber'
##### Trying to pass a parameter via transfer to another fiber:
manager = nil
# First establish the receiving fiber: