Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radar/8125a3a8f6d88f73e6d6e7b4f4452820 to your computer and use it in GitHub Desktop.
Save radar/8125a3a8f6d88f73e6d6e7b4f4452820 to your computer and use it in GitHub Desktop.
require 'concurrent'
class Test
def update(time, value, reason)
puts "OMG"
end
end
puts 'testing . . .'
future = Concurrent::Future.new { 'concurrent thread' }
future.add_observer(Test.new)
future.execute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment