MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_nowait

Method get_nowait

lib/sqlalchemy/util/queue.py:203–210  ·  view source on GitHub ↗

Remove and return an item from the queue without blocking. Only get an item if one is immediately available. Otherwise raise the ``Empty`` exception.

(self)

Source from the content-addressed store, hash-verified

201 return item
202
203 def get_nowait(self) -> _T:
204 """Remove and return an item from the queue without blocking.
205
206 Only get an item if one is immediately available. Otherwise
207 raise the ``Empty`` exception.
208 """
209
210 return self.get(False)
211
212 def _init(self, maxsize: int) -> None:
213 self.maxsize = maxsize

Callers 2

_run_in_processMethod · 0.95
get_nowaitMethod · 0.45

Calls 1

getMethod · 0.95

Tested by 1

_run_in_processMethod · 0.76