MCPcopy Create free account
hub / github.com/catboost/catboost / io_job

Function io_job

library/python/func/ut/test_func.py:201–203  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

199
200 @func.memoize(thread_safe=False)
201 def io_job(n):
202 time.sleep(0.1)
203 return Counter(n)
204
205 def worker(n):
206 assert io_job(n).inc() == n + 1

Callers 2

workerFunction · 0.85

Calls 2

sleepMethod · 0.80
CounterClass · 0.70

Tested by

no test coverage detected