MCPcopy Create free account
hub / github.com/EasyIME/PIME / join

Method join

python/python3/tornado/queues.py:292–300  ·  view source on GitHub ↗

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 """Block until all items in the queue are processed.
296
297 Returns an awaitable, which raises `tornado.util.TimeoutError` after a
298 timeout.
299 """
300 return self._finished.wait(timeout)
301
302 def __aiter__(self) -> _QueueIterator[_T]:
303 return _QueueIterator(self)

Callers 15

test_async.cppFile · 0.80
bench_mtFunction · 0.80
bench_mtFunction · 0.80
bench_mtFunction · 0.80
mainFunction · 0.80
~periodic_workerMethod · 0.80
~thread_poolMethod · 0.80
enumerateServicesMethod · 0.80
runMethod · 0.80
getConfigDirMethod · 0.80
getConfigFileMethod · 0.80

Calls 1

waitMethod · 0.45

Tested by 15

default_ssl_optionsMethod · 0.64
test_reload_moduleMethod · 0.64
test_break_continueMethod · 0.64
setUpMethod · 0.64
runMethod · 0.64
test_task_doneMethod · 0.64
test_task_done_delayMethod · 0.64