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

Function wait

dask/base.py:1203–1215  ·  view source on GitHub ↗

Wait until computation has finished This is a compatibility alias for ``dask.distributed.wait``. If it is applied onto Dask collections without Dask Futures or if Dask distributed is not installed then it is a no-op

(x, timeout=None, return_when="ALL_COMPLETED")

Source from the content-addressed store, hash-verified

1201
1202
1203def wait(x, timeout=None, return_when="ALL_COMPLETED"):
1204 """Wait until computation has finished
1205
1206 This is a compatibility alias for ``dask.distributed.wait``.
1207 If it is applied onto Dask collections without Dask Futures or if Dask
1208 distributed is not installed then it is a no-op
1209 """
1210 try:
1211 from distributed import wait
1212
1213 return wait(x, timeout=timeout, return_when=return_when)
1214 except (ImportError, ValueError):
1215 return x
1216
1217
1218def get_collection_names(collection) -> set[str]:

Callers 6

compression_matrixFunction · 0.90
svd_compressedFunction · 0.90
fMethod · 0.85
analyzeFunction · 0.85
test_persistFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_persistFunction · 0.68