Skip to content

Instantly share code, notes, and snippets.

@dkubb
Created July 21, 2013 08:07
Show Gist options
  • Save dkubb/6047881 to your computer and use it in GitHub Desktop.
Save dkubb/6047881 to your computer and use it in GitHub Desktop.
Ruby Thread-safe Set
require 'thread_safe'
module ThreadSafe
class Set < ::Set
def initialize(*)
@hash = Hash.new
super
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment