winrt-Windows.System.Threading 3.2.1__cp314-cp314-win32.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,53 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+
14
+ from winrt.windows.system.threading import WorkItemOptions, WorkItemPriority
15
+ from winrt.windows.system.threading import TimerDestroyedHandler, TimerElapsedHandler, WorkItemHandler
16
+
17
+ Self = typing.TypeVar('Self')
18
+
19
+ @typing.final
20
+ class ThreadPool_Static(winrt._winrt.IInspectable_Static):
21
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.ThreadPool::RunAsync(Windows.System.Threading.WorkItemHandler)
22
+ def run_async(cls, handler: WorkItemHandler, /) -> windows_foundation.IAsyncAction: ...
23
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.ThreadPool::RunAsync(Windows.System.Threading.WorkItemHandler,Windows.System.Threading.WorkItemPriority,Windows.System.Threading.WorkItemOptions)
24
+ def run_with_priority_and_options_async(cls, handler: WorkItemHandler, priority: WorkItemPriority, options: WorkItemOptions, /) -> windows_foundation.IAsyncAction: ...
25
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.ThreadPool::RunAsync(Windows.System.Threading.WorkItemHandler,Windows.System.Threading.WorkItemPriority)
26
+ def run_with_priority_async(cls, handler: WorkItemHandler, priority: WorkItemPriority, /) -> windows_foundation.IAsyncAction: ...
27
+
28
+ @typing.final
29
+ class ThreadPool(winrt.system.Object, metaclass=ThreadPool_Static):
30
+ pass
31
+
32
+ @typing.final
33
+ class ThreadPoolTimer_Static(winrt._winrt.IInspectable_Static):
34
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreatePeriodicTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan)
35
+ def create_periodic_timer(cls, handler: TimerElapsedHandler, period: datetime.timedelta, /) -> ThreadPoolTimer: ...
36
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreatePeriodicTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan,Windows.System.Threading.TimerDestroyedHandler)
37
+ def create_periodic_timer_with_completion(cls, handler: TimerElapsedHandler, period: datetime.timedelta, destroyed: TimerDestroyedHandler, /) -> ThreadPoolTimer: ...
38
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreateTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan)
39
+ def create_timer(cls, handler: TimerElapsedHandler, delay: datetime.timedelta, /) -> ThreadPoolTimer: ...
40
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreateTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan,Windows.System.Threading.TimerDestroyedHandler)
41
+ def create_timer_with_completion(cls, handler: TimerElapsedHandler, delay: datetime.timedelta, destroyed: TimerDestroyedHandler, /) -> ThreadPoolTimer: ...
42
+
43
+ @typing.final
44
+ class ThreadPoolTimer(winrt.system.Object, metaclass=ThreadPoolTimer_Static):
45
+ # System.Void Windows.System.Threading.ThreadPoolTimer::Cancel()
46
+ def cancel(self) -> None: ...
47
+ # Windows.Foundation.TimeSpan Windows.System.Threading.ThreadPoolTimer::get_Delay()
48
+ @_property
49
+ def delay(self) -> datetime.timedelta: ...
50
+ # Windows.Foundation.TimeSpan Windows.System.Threading.ThreadPoolTimer::get_Period()
51
+ @_property
52
+ def period(self) -> datetime.timedelta: ...
53
+
@@ -0,0 +1,37 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
+
3
+ import enum
4
+ import typing
5
+ import uuid as _uuid
6
+
7
+ import winrt.system
8
+ from winrt._winrt_windows_system_threading import (
9
+ ThreadPool,
10
+ ThreadPoolTimer,
11
+ )
12
+
13
+ if typing.TYPE_CHECKING:
14
+ import winrt.windows.foundation as windows_foundation
15
+
16
+ __all__ = [
17
+ "WorkItemOptions",
18
+ "WorkItemPriority",
19
+ "ThreadPool",
20
+ "ThreadPoolTimer",
21
+ "TimerDestroyedHandler",
22
+ "TimerElapsedHandler",
23
+ "WorkItemHandler",
24
+ ]
25
+
26
+ class WorkItemOptions(enum.IntFlag):
27
+ NONE = 0x0
28
+ TIME_SLICED = 0x1
29
+
30
+ class WorkItemPriority(enum.IntEnum):
31
+ LOW = -1
32
+ NORMAL = 0
33
+ HIGH = 1
34
+
35
+ TimerDestroyedHandler = typing.Callable[[ThreadPoolTimer], None]
36
+ TimerElapsedHandler = typing.Callable[[ThreadPoolTimer], None]
37
+ WorkItemHandler = typing.Callable[["windows_foundation.IAsyncAction"], None]
File without changes
@@ -0,0 +1,25 @@
1
+ Metadata-Version: 2.4
2
+ Name: winrt-Windows.System.Threading
3
+ Version: 3.2.1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License-Expression: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime~=3.2.1.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]~=3.2.1.0; extra == "all"
18
+
19
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
20
+
21
+ # winrt-Windows.System.Threading
22
+
23
+ Windows Runtime (WinRT) APIs for for the `Windows.System.Threading` namespace.
24
+
25
+ This package provides the `winrt.windows.system.threading` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_system_threading.cp314-win32.pyd,sha256=TWaji6KVm43OrO7TgWGgT_sGXQ5_a-CPIX83D2E_tHI,63488
2
+ winrt/_winrt_windows_system_threading.pyi,sha256=7EO0h8yhvleBEZVv790iXy4JQTcPfZd7JCU7Fh77kz4,3521
3
+ winrt/windows/system/threading/__init__.py,sha256=echwatuKqWcQLajDhBlKjpApSaYp9dsV5NhAYAT62RU,867
4
+ winrt/windows/system/threading/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_windows_system_threading-3.2.1.dist-info/METADATA,sha256=UwUjvMcU1qXiGDIiYVOzbZzbM0siF0J8ys-bZyLKJfI,1053
6
+ winrt_windows_system_threading-3.2.1.dist-info/WHEEL,sha256=avp3B09fSRXVHn4cshTNKc58MtFVN-cVe0NyrqeYT2s,97
7
+ winrt_windows_system_threading-3.2.1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_windows_system_threading-3.2.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-win32
5
+