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

Method submit

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

Source from the content-addressed store, hash-verified

575 _max_workers = 1
576
577 def submit(self, fn, *args, **kwargs):
578 fut = Future()
579 try:
580 fut.set_result(fn(*args, **kwargs))
581 except BaseException as e: # noqa: B036
582 fut.set_exception(e)
583 return fut
584
585
586synchronous_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