Skip to content

Instantly share code, notes, and snippets.

View bruno-'s full-sized avatar
♦️
Async Ruby enthusiast

Bruno Sutic bruno-

♦️
Async Ruby enthusiast
View GitHub Profile

Rubocop

Installation & usage

$ gem install rubocop

  • usage $ rubocop #=> bunch of errors (1000's maybe)
@bruno-
bruno- / async.rb
Created November 5, 2021 21:11
Threads vs Async Ruby
require "async"
CONCURRENCY = 1000
ITERATIONS = 100
def work
Async do |task|
CONCURRENCY.times do
task.async do
sleep 1