Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/fluentpython/example-code-2e
/ check
Function
check
19-concurrency/primes/spinner_prime_async_nap.py:42–43 ·
view source on GitHub ↗
(n: int)
Source
from the content-addressed store, hash-verified
40
print(f
'\r{blanks}\r'
, end=
''
)
41
42
async
def
check(n: int) -> int:
43
return
await is_prime(n)
44
45
async
def
supervisor(n: int) -> int:
46
spinner = asyncio.create_task(spin(
'thinking!'
))
Callers
1
supervisor
Function · 0.70
Calls
1
is_prime
Function · 0.70
Tested by
no test coverage detected