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")
| 1195 | |
| 1196 | |
| 1197 | def wait(x, timeout=None, return_when="ALL_COMPLETED"): |
| 1198 | """Wait until computation has finished |
| 1199 | |
| 1200 | This is a compatibility alias for ``dask.distributed.wait``. |
| 1201 | If it is applied onto Dask collections without Dask Futures or if Dask |
| 1202 | distributed is not installed then it is a no-op |
| 1203 | """ |
| 1204 | try: |
| 1205 | from distributed import wait |
| 1206 | |
| 1207 | return wait(x, timeout=timeout, return_when=return_when) |
| 1208 | except (ImportError, ValueError): |
| 1209 | return x |
| 1210 | |
| 1211 | |
| 1212 | def get_collection_names(collection) -> set[str]: |
no outgoing calls
searching dependent graphs…