Skip to content

Instantly share code, notes, and snippets.

@gwincr11
Created August 16, 2016 19:35
Show Gist options
  • Save gwincr11/377b6bfd3d925bbf5c4f3d8aeb4e1f20 to your computer and use it in GitHub Desktop.
Save gwincr11/377b6bfd3d925bbf5c4f3d8aeb4e1f20 to your computer and use it in GitHub Desktop.
timing issue curry psuedo
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