MCPcopy Index your code
hub / github.com/dask/dask / test_concurrency

Function test_concurrency

dask/array/tests/test_random.py:40–46  ·  view source on GitHub ↗
(generator_class)

Source from the content-addressed store, hash-verified

38
39
40def test_concurrency(generator_class):
41 state = generator_class(5)
42 x = state.normal(10, 1, size=10, chunks=2)
43
44 state = generator_class(5)
45 y = state.normal(10, 1, size=10, chunks=2)
46 assert (x.compute(scheduler="processes") == y.compute(scheduler="processes")).all()
47
48
49def test_doc_randomstate(generator_class):

Callers

nothing calls this directly

Calls 4

generator_classFunction · 0.85
normalMethod · 0.45
allMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…