MCPcopy Create free account
hub / github.com/rthalley/dnspython / threaded_main

Function threaded_main

tests/nanonameserver.py:455–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

453 print("trio_main caught", type(e), e)
454
455 def threaded_main():
456 with Server(port=5354, dot_port=5355, doh_port=5356) as server:
457 print("Thread mode")
458 for proto, address in server.addresses.items():
459 print(f" listening on {proto.name}: {address}")
460 time.sleep(300)
461
462 if len(sys.argv) > 1 and sys.argv[1] == "trio":
463 trio.run(trio_main)

Callers 1

nanonameserver.pyFile · 0.85

Calls 3

ServerClass · 0.70
itemsMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…