MCPcopy Index your code
hub / github.com/python/cpython / _test_selector_event

Function _test_selector_event

Lib/asyncio/selector_events.py:42–50  ·  view source on GitHub ↗
(selector, fd, event)

Source from the content-addressed store, hash-verified

40 _HAS_SENDMSG = False
41
42def _test_selector_event(selector, fd, event):
43 # Test if the selector is monitoring 'event' events
44 # for the file descriptor 'fd'.
45 try:
46 key = selector.get_key(fd)
47 except KeyError:
48 return False
49 else:
50 return bool(key.events & event)
51
52
53class BaseSelectorEventLoop(base_events.BaseEventLoop):

Callers 1

__repr__Method · 0.85

Calls 1

get_keyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…