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

Method is_set

Lib/asyncio/locks.py:178–180  ·  view source on GitHub ↗

Return True if and only if the internal flag is true.

(self)

Source from the content-addressed store, hash-verified

176 return f'<{res[1:-1]} [{extra}]>'
177
178 def is_set(self):
179 """Return True if and only if the internal flag is true."""
180 return self._value
181
182 def set(self):
183 """Set the internal flag to true. All tasks waiting for it to

Callers 15

test_wait_for_threadsMethod · 0.95
test_eventMethod · 0.95
test_eventMethod · 0.95
test_waitMethod · 0.95
test_clearMethod · 0.95
_monitor_loopMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_wait_for_threadsMethod · 0.76
test_eventMethod · 0.76
test_eventMethod · 0.76
test_waitMethod · 0.76
test_clearMethod · 0.76
do_blocking_testMethod · 0.36