massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3.4 / asyncio / queues.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3.4/asyncio/queues.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3.4/asyncio/queues.pyi
new file mode 100644 (file)
index 0000000..729167a
--- /dev/null
@@ -0,0 +1,51 @@
+import sys\r
+from asyncio.events import AbstractEventLoop\r
+from .coroutines import coroutine\r
+from .futures import Future\r
+from typing import Any, Generator, Generic, List, TypeVar\r
+\r
+__all__: List[str]\r
+\r
+\r
+class QueueEmpty(Exception): ...\r
+class QueueFull(Exception): ...\r
+\r
+_T = TypeVar('_T')\r
+\r
+class Queue(Generic[_T]):\r
+    def __init__(self, maxsize: int = ..., *, loop: AbstractEventLoop = ...) -> None: ...\r
+    def _init(self, maxsize: int) -> None: ...\r
+    def _get(self) -> _T: ...\r
+    def _put(self, item: _T) -> None: ...\r
+    def __repr__(self) -> str: ...\r
+    def __str__(self) -> str: ...\r
+    def _format(self) -> str: ...\r
+    def _consume_done_getters(self) -> None: ...\r
+    def _consume_done_putters(self) -> None: ...\r
+    def qsize(self) -> int: ...\r
+    @property\r
+    def maxsize(self) -> int: ...\r
+    def empty(self) -> bool: ...\r
+    def full(self) -> bool: ...\r
+    @coroutine\r
+    def put(self, item: _T) -> Generator[Any, None, None]: ...\r
+    def put_nowait(self, item: _T) -> None: ...\r
+    @coroutine\r
+    def get(self) -> Generator[Any, None, _T]: ...\r
+    def get_nowait(self) -> _T: ...\r
+    if sys.version_info >= (3, 4):\r
+        @coroutine\r
+        def join(self) -> Generator[Any, None, bool]: ...\r
+        def task_done(self) -> None: ...\r
+\r
+\r
+class PriorityQueue(Queue[_T]): ...\r
+\r
+\r
+class LifoQueue(Queue[_T]): ...\r
+\r
+if sys.version_info < (3, 5):\r
+    class JoinableQueue(Queue[_T]):\r
+        def task_done(self) -> None: ...\r
+        @coroutine\r
+        def join(self) -> Generator[Any, None, bool]: ...\r