mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
17 lines
686 B
Python
17 lines
686 B
Python
from typing import Any, SupportsIndex
|
|
|
|
class QueueError(RuntimeError): ...
|
|
class QueueNotFoundError(QueueError): ...
|
|
|
|
def bind(qid: SupportsIndex) -> None: ...
|
|
def create(maxsize: SupportsIndex, fmt: SupportsIndex) -> int: ...
|
|
def destroy(qid: SupportsIndex) -> None: ...
|
|
def get(qid: SupportsIndex) -> tuple[Any, int]: ...
|
|
def get_count(qid: SupportsIndex) -> int: ...
|
|
def get_maxsize(qid: SupportsIndex) -> int: ...
|
|
def get_queue_defaults(qid: SupportsIndex) -> tuple[int]: ...
|
|
def is_full(qid: SupportsIndex) -> bool: ...
|
|
def list_all() -> list[tuple[int, int]]: ...
|
|
def put(qid: SupportsIndex, obj: Any, fmt: SupportsIndex) -> None: ...
|
|
def release(qid: SupportsIndex) -> None: ...
|