MCPcopy Create free account
hub / github.com/dask/dask / submit

Method submit

dask/local.py:575–581  ·  view source on GitHub ↗
(self, fn, *args, **kwargs)

Source from the content-addressed store, hash-verified

573 _max_workers = 1
574
575 def submit(self, fn, *args, **kwargs):
576 fut = Future()
577 try:
578 fut.set_result(fn(*args, **kwargs))
579 except BaseException as e:
580 fut.set_exception(e)
581 return fut
582
583
584synchronous_executor = SynchronousExecutor()

Callers 7

testFunction · 0.45
test_refcounting_futuresFunction · 0.45
test_annotations_leakFunction · 0.45

Calls 1

fnFunction · 0.85

Tested by 7

testFunction · 0.36
test_refcounting_futuresFunction · 0.36
test_annotations_leakFunction · 0.36