...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
import time from funcx import FuncXExecutor from funcx.sdk.client import FuncXClient fx = FuncXExecutor(FuncXClient()) def add_func(a, bdouble(x): return ax +* b2 delta_endpoint = '<< your endpoint's ID >>' futurewith FuncXExecutor(endpoint_id=delta_endpoint) as fxe: fut = fxfxe.submit(add_funcdouble, 5, 10, endpoint_id=delta_endpoint) print(f7) print("Result is {futureof doubling:",fut.result()}") |
Related articles
Content by Label | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...