MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / close_all

Function close_all

tools/python-3.11.9-amd64/Lib/asyncore.py:558–574  ·  view source on GitHub ↗
(map=None, ignore_all=False)

Source from the content-addressed store, hash-verified

556 return (file, function, line), t, v, info
557
558def close_all(map=None, ignore_all=False):
559 if map is None:
560 map = socket_map
561 for x in list(map.values()):
562 try:
563 x.close()
564 except OSError as x:
565 if x.errno == EBADF:
566 pass
567 elif not ignore_all:
568 raise
569 except _reraised_exceptions:
570 raise
571 except:
572 if not ignore_all:
573 raise
574 map.clear()
575
576# Asynchronous File I/O:
577#

Callers

nothing calls this directly

Calls 4

listFunction · 0.85
valuesMethod · 0.45
closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected