Sha256: b2f7bc17a2e1b0a9318ae891b6c17d8f77811392994b751c3ba71e547b97693e
Contents?: true
Size: 432 Bytes
Versions: 27
Compression:
Stored size: 432 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'polyphony' Exception.__disable_sanitized_backtrace__ = true def work puts "creating fibers..." 100000.times { spin { loop { snooze } } } puts "done" suspend end def work_thread t = Thread.new { work } t.join end main = Fiber.current p [:main, main] # trap('SIGINT') do # p [:SIGINT, Fiber.current] # p caller # exit! # end work
Version data entries
27 entries across 27 versions & 1 rubygems