Created
August 16, 2016 19:35
-
-
Save gwincr11/377b6bfd3d925bbf5c4f3d8aeb4e1f20 to your computer and use it in GitHub Desktop.
timing issue curry psuedo
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
def curry_function(fun, execute_time): | |
fun.call(self, execute_time) | |
end | |
def tick(self): | |
execute_time = time.now | |
[function1, function2].each do |fun| | |
new_function = curry_function(fun, execute_time) | |
Thread.new | |
publisher.pub(new_func.call(self)) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment