Skip to content

Instantly share code, notes, and snippets.

@fxn
Created July 30, 2023 11:47
Show Gist options
  • Save fxn/e4c50e5548e8f0c2d3fd4527fad010f8 to your computer and use it in GitHub Desktop.
Save fxn/e4c50e5548e8f0c2d3fd4527fad010f8 to your computer and use it in GitHub Desktop.
threads = []
5.times do
threads << Thread.new {
p require 'date'
}
end
threads.each(&:join)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment