Skip to content

Instantly share code, notes, and snippets.

@fxn
Created July 30, 2023 11:47
Show Gist options
  • Select an option

  • Save fxn/e4c50e5548e8f0c2d3fd4527fad010f8 to your computer and use it in GitHub Desktop.

Select an option

Save fxn/e4c50e5548e8f0c2d3fd4527fad010f8 to your computer and use it in GitHub Desktop.

Revisions

  1. fxn created this gist Jul 30, 2023.
    9 changes: 9 additions & 0 deletions concurrent_require.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    threads = []

    5.times do
    threads << Thread.new {
    p require 'date'
    }
    end

    threads.each(&:join)