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

Method join

tornado/queues.py:292–300  ·  tornado/queues.py::Queue.join

Block until all items in the queue are processed. Returns an awaitable, which raises `tornado.util.TimeoutError` after a timeout.

(
        self, timeout: Optional[Union[float, datetime.timedelta]] = None
    )

Source from the content-addressed store, hash-verified

290 self._finished.set()
291
292 def join(
293 self, timeout: Optional[Union[float, datetime.timedelta]] = None
294 ) -> Awaitable[None]:
295 class="st">"""Block until all items in the queue are processed.
296
297 Returns an awaitable, which raises `tornado.util.TimeoutError` after a
298 timeout.
299 class="st">"""
300 return self._finished.wait(timeout)
301
302 def __aiter__(self) -> _QueueIterator[_T]:
303 return _QueueIterator(self)

Callers 15

mainFunction · 0.95
__repr__Method · 0.80
formatMethod · 0.80
load_translationsFunction · 0.80
listMethod · 0.80
friendly_numberMethod · 0.80
default_ssl_optionsMethod · 0.80
finishMethod · 0.80
handle_requestMethod · 0.80
_openid_argsMethod · 0.80

Calls 1

waitMethod · 0.45

Tested by 15

default_ssl_optionsMethod · 0.64
get_ssl_optionsMethod · 0.64
test_reuse_certsMethod · 0.64
write_filesMethod · 0.64
run_subprocessMethod · 0.64
test_break_continueMethod · 0.64
setUpMethod · 0.64
runMethod · 0.64