Forked from marzdgzmn/gist:d317e286d4cc4a087c3d811d252f6300
Last active
January 5, 2018 05:11
-
-
Save radar/8125a3a8f6d88f73e6d6e7b4f4452820 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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