File: threaded_extension.pyi

package info (click to toggle)
typeshed 0.0~git20221107.4f381af-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,036 kB
  • sloc: python: 3,216; sh: 62; makefile: 13
file content (29 lines) | stat: -rw-r--r-- 966 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import threading
from _typeshed import Incomplete

import isapi.simple
from isapi import ExtensionError as ExtensionError, isapicon as isapicon
from win32event import INFINITE as INFINITE

ISAPI_REQUEST: int
ISAPI_SHUTDOWN: int

class WorkerThread(threading.Thread):
    running: bool
    io_req_port: Incomplete
    extension: Incomplete
    def __init__(self, extension, io_req_port) -> None: ...
    def call_handler(self, cblock) -> None: ...

class ThreadPoolExtension(isapi.simple.SimpleExtension):
    max_workers: int
    worker_shutdown_wait: int
    workers: Incomplete
    dispatch_map: Incomplete
    io_req_port: Incomplete
    def GetExtensionVersion(self, vi) -> None: ...
    def HttpExtensionProc(self, control_block): ...
    def TerminateExtension(self, status) -> None: ...
    def DispatchConnection(self, errCode, bytes, key, overlapped) -> None: ...
    def Dispatch(self, ecb) -> None: ...
    def HandleDispatchError(self, ecb) -> None: ...