Files
typeshed/stdlib/2/thread.pyi
Guido van Rossum cb97bb54c0 Move 2.7 to 2 (#635)
Closes #579.
2016-10-26 16:24:49 -07:00

34 lines
996 B
Python

"""Stubs for the "thread" module."""
from typing import Callable, Any
def _count() -> int: ...
class error(Exception): ...
class LockType:
def acquire(self, waitflag: int = ...) -> bool: ...
def acquire_lock(self, waitflag: int = ...) -> bool: ...
def release(self) -> None: ...
def release_lock(self) -> None: ...
def locked(self) -> bool: ...
def locked_lock(self) -> bool: ...
def __enter__(self) -> LockType: ...
def __exit__(self, value: Any, traceback: Any) -> None: ...
class _local(object):
pass
class _localdummy(object):
pass
def start_new(function: Callable[..., Any], args: Any, kwargs: Any = ...) -> int: ...
def start_new_thread(function: Callable[..., Any], args: Any, kwargs: Any = ...) -> int: ...
def interrupt_main() -> None: ...
def exit() -> None:
raise SystemExit()
def exit_thread() -> Any:
raise SystemExit()
def allocate_lock() -> LockType: ...
def get_ident() -> int: ...
def stack_size(size: int = ...) -> int: ...