2 from socket import socket
3 from threading import Lock
4 from typing import Callable, Mapping
5 from typing_extensions import Literal
7 from . import wasyncore as wasyncore
10 kind: str | None = ...
12 thunks: Callable[[None], None] = ...
13 def __init__(self) -> None: ...
14 def readable(self) -> Literal[True]: ...
15 def writable(self) -> Literal[False]: ...
16 def handle_connect(self) -> None: ...
17 def handle_close(self) -> None: ...
18 def close(self) -> None: ...
19 def pull_trigger(self, thunk: Callable[[None], None] | None = ...) -> None: ...
20 def handle_read(self) -> None: ...
22 if sys.platform == "linux" or sys.platform == "darwin":
23 class trigger(_triggerbase, wasyncore.file_dispatcher):
25 def __init__(self, map: Mapping[str, _triggerbase]) -> None: ...
28 class trigger(_triggerbase, wasyncore.dispatcher):
31 def __init__(self, map: Mapping[str, _triggerbase]) -> None: ...