MCPcopy
hub / github.com/fluentpython/example-code-2e / main

Function main

19-concurrency/primes/spinner_prime_async_nap.py:52–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 return result
51
52def main() -> None:
53 n = 5_000_111_000_222_021
54 result = asyncio.run(supervisor(n))
55 msg = 'is' if result else 'is not'
56 print(f'{n:,} {msg} prime')
57
58if __name__ == '__main__':
59 main()

Callers 1

Calls 2

supervisorFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected