massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / _dummy_thread.pyi
1 from typing import Any, Callable, NoReturn, Tuple
2
3 TIMEOUT_MAX: int
4 error = RuntimeError
5
6 def start_new_thread(function: Callable[..., Any], args: Tuple[Any, ...], kwargs: dict[str, Any] = ...) -> None: ...
7 def exit() -> NoReturn: ...
8 def get_ident() -> int: ...
9 def allocate_lock() -> LockType: ...
10 def stack_size(size: int | None = ...) -> int: ...
11
12 class LockType(object):
13     locked_status: bool
14     def __init__(self) -> None: ...
15     def acquire(self, waitflag: bool | None = ..., timeout: int = ...) -> bool: ...
16     def __enter__(self, waitflag: bool | None = ..., timeout: int = ...) -> bool: ...
17     def __exit__(self, typ: Any, val: Any, tb: Any) -> None: ...
18     def release(self) -> bool: ...
19     def locked(self) -> bool: ...
20
21 def interrupt_main() -> None: ...