How to write synchronization mechanisms for Fiber

Ruby