Created
July 29, 2017 14:36
-
-
Save nachivpn/378d4d5ef63e7cc849ea57b80efa997c to your computer and use it in GitHub Desktop.
fade_py_ex.py
This file contains hidden or 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
from Fade import FadeExecutor | |
def x(a, b): return [a + b, a - b] | |
with FadeExecutor() as f: | |
future = f.submit(x, 5, 3) | |
result = future.result() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment