MCPcopy
hub / github.com/dask/dask / unpack_callbacks

Function unpack_callbacks

dask/callbacks.py:86–91  ·  view source on GitHub ↗

Take an iterable of callbacks, return a list of each callback.

(cbs)

Source from the content-addressed store, hash-verified

84
85
86def unpack_callbacks(cbs):
87 """Take an iterable of callbacks, return a list of each callback."""
88 if cbs:
89 return [[i for i in f if i] for f in zip(*cbs)]
90 else:
91 return [(), (), (), (), ()]
92
93
94@contextmanager

Callers 1

get_asyncFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…