massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / thread.pyi
1 """Stubs for the "thread" module."""\r
2 from typing import Callable, Any\r
3 \r
4 def _count() -> int: ...\r
5 \r
6 class error(Exception): ...\r
7 \r
8 class LockType:\r
9     def acquire(self, waitflag: int = ...) -> bool: ...\r
10     def acquire_lock(self, waitflag: int = ...) -> bool: ...\r
11     def release(self) -> None: ...\r
12     def release_lock(self) -> None: ...\r
13     def locked(self) -> bool: ...\r
14     def locked_lock(self) -> bool: ...\r
15     def __enter__(self) -> LockType: ...\r
16     def __exit__(self, typ: Any, value: Any, traceback: Any) -> None: ...\r
17 \r
18 class _local(object): ...\r
19 class _localdummy(object): ...\r
20 \r
21 def start_new(function: Callable[..., Any], args: Any, kwargs: Any = ...) -> int: ...\r
22 def start_new_thread(function: Callable[..., Any], args: Any, kwargs: Any = ...) -> int: ...\r
23 def interrupt_main() -> None: ...\r
24 def exit() -> None:\r
25     raise SystemExit()\r
26 def exit_thread() -> Any:\r
27     raise SystemExit()\r
28 def allocate_lock() -> LockType: ...\r
29 def get_ident() -> int: ...\r
30 def stack_size(size: int = ...) -> int: ...\r