1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
from typing import Any
class Empty(Exception): ...
class Full(Exception): ...
class Queue:
mutex: Any
not_empty: Any
not_full: Any
use_lifo: Any
def __init__(self, maxsize: int = ..., use_lifo: bool = ...) -> None: ...
def qsize(self): ...
def empty(self): ...
def full(self): ...
def put(self, item, block: bool = ..., timeout: Any | None = ...) -> None: ...
def put_nowait(self, item): ...
def get(self, block: bool = ..., timeout: Any | None = ...): ...
def get_nowait(self): ...
class AsyncAdaptedQueue:
await_: Any
use_lifo: Any
maxsize: Any
def __init__(self, maxsize: int = ..., use_lifo: bool = ...) -> None: ...
def empty(self): ...
def full(self): ...
def qsize(self): ...
def put_nowait(self, item): ...
def put(self, item, block: bool = ..., timeout: Any | None = ...): ...
def get_nowait(self): ...
def get(self, block: bool = ..., timeout: Any | None = ...): ...
class FallbackAsyncAdaptedQueue(AsyncAdaptedQueue):
await_: Any
|