Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
worker
Function · 0.85
test_memoize_not_thread_safe_concurrent
Function · 0.85
Calls
2
sleep
Method · 0.80
Counter
Class · 0.70
Tested by
no test coverage detected