This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |