File: thread_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 (9 lines) | stat: -rw-r--r-- 106 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

threads = []

(1..).each do |i|
	threads << Thread.new{sleep}
	puts i
end