File: fiber_count.rb

package info (click to toggle)
ruby-async 1.30.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 536 kB
  • sloc: ruby: 3,651; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 118 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

fibers = []

(1..).each do |i|
	fibers << Fiber.new{}
	fibers.last.resume
	puts i
end