MCPcopy
hub / github.com/tornadoweb/tornado / clear

Method clear

tornado/locks.py:224–229  ·  view source on GitHub ↗

Reset the internal flag to ``False``. Calls to `.wait` will block until `.set` is called.

(self)

Source from the content-addressed store, hash-verified

222 fut.set_result(None)
223
224 def clear(self) -> None:
225 """Reset the internal flag to ``False``.
226
227 Calls to `.wait` will block until `.set` is called.
228 """
229 self._value = False
230
231 def wait(
232 self, timeout: Optional[Union[float, datetime.timedelta]] = None

Callers 10

test_eventMethod · 0.95
test_event_wait_clearMethod · 0.95
_signal_closedMethod · 0.45
__put_internalMethod · 0.45
_curl_header_callbackMethod · 0.45
tearDownMethod · 0.45
tearDownMethod · 0.45
tearDownMethod · 0.45
tearDownMethod · 0.45
_atexit_callbackFunction · 0.45

Calls

no outgoing calls

Tested by 6

test_eventMethod · 0.76
test_event_wait_clearMethod · 0.76
tearDownMethod · 0.36
tearDownMethod · 0.36
tearDownMethod · 0.36
tearDownMethod · 0.36