Created
January 5, 2018 03:37
-
-
Save marzdgzmn/d317e286d4cc4a087c3d811d252f6300 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 "time" + time | |
puts "value" + value | |
puts "reason" + reason | |
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