winrt-Windows.System.Threading 4!10.0.28000.2705__py3-none-any.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,29 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import typing
4
+
5
+ import winrt.runtime._internals
6
+ import winrt.system
7
+
8
+ if typing.TYPE_CHECKING:
9
+ import winrt.windows.foundation as windows_foundation
10
+
11
+ winrt.runtime._internals.load_projection(__spec__)
12
+
13
+ __all__ = [
14
+ "WorkItemOptions",
15
+ "WorkItemPriority",
16
+ "ThreadPool",
17
+ "ThreadPoolTimer",
18
+ "TimerDestroyedHandler",
19
+ "TimerElapsedHandler",
20
+ "WorkItemHandler",
21
+ ]
22
+
23
+ winrt.runtime._internals.alias_static_method(ThreadPool, "run_with_priority_and_options_async", "run_async")
24
+ winrt.runtime._internals.alias_static_method(ThreadPool, "run_with_priority_async", "run_async")
25
+ winrt.runtime._internals.alias_static_method(ThreadPoolTimer, "create_periodic_timer_with_completion", "create_periodic_timer")
26
+ winrt.runtime._internals.alias_static_method(ThreadPoolTimer, "create_timer_with_completion", "create_timer")
27
+ TimerDestroyedHandler = typing.Callable[[ThreadPoolTimer], object]
28
+ TimerElapsedHandler = typing.Callable[[ThreadPoolTimer], object]
29
+ WorkItemHandler = typing.Callable[["windows_foundation.IAsyncAction"], object]
@@ -0,0 +1,94 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import datetime
4
+ import enum
5
+ import typing
6
+ from builtins import property as _property
7
+ from typing_extensions import deprecated
8
+
9
+ import winrt.system
10
+ import winrt.windows.foundation as windows_foundation
11
+
12
+ __all__ = [
13
+ "WorkItemOptions",
14
+ "WorkItemPriority",
15
+ "ThreadPool",
16
+ "ThreadPoolTimer",
17
+ "TimerDestroyedHandler",
18
+ "TimerElapsedHandler",
19
+ "WorkItemHandler",
20
+ ]
21
+
22
+ class WorkItemOptions(enum.IntFlag):
23
+ NONE = 0x0
24
+ TIME_SLICED = 0x1
25
+
26
+ class WorkItemPriority(enum.IntEnum):
27
+ LOW = -1
28
+ NORMAL = 0
29
+ HIGH = 1
30
+
31
+ @typing.final
32
+ class ThreadPool_Static(winrt.system.Object_Static):
33
+ @typing.overload
34
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.ThreadPool::RunAsync(Windows.System.Threading.WorkItemHandler)
35
+ def run_async(cls, handler: WorkItemHandler, /) -> windows_foundation.IAsyncAction: ...
36
+ @typing.overload
37
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.ThreadPool::RunAsync(Windows.System.Threading.WorkItemHandler,Windows.System.Threading.WorkItemPriority)
38
+ def run_async(cls, handler: WorkItemHandler, priority: WorkItemPriority, /) -> windows_foundation.IAsyncAction: ...
39
+ @typing.overload
40
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.ThreadPool::RunAsync(Windows.System.Threading.WorkItemHandler,Windows.System.Threading.WorkItemPriority,Windows.System.Threading.WorkItemOptions)
41
+ def run_async(cls, handler: WorkItemHandler, priority: WorkItemPriority, options: WorkItemOptions, /) -> windows_foundation.IAsyncAction: ...
42
+ # Deprecated alias of run_async() for pywinrt v3.x compatibility.
43
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.ThreadPool::RunAsync(Windows.System.Threading.WorkItemHandler,Windows.System.Threading.WorkItemPriority,Windows.System.Threading.WorkItemOptions)
44
+ @deprecated("Use run_async() instead.")
45
+ def run_with_priority_and_options_async(cls, handler: WorkItemHandler, priority: WorkItemPriority, options: WorkItemOptions, /) -> windows_foundation.IAsyncAction: ...
46
+ # Deprecated alias of run_async() for pywinrt v3.x compatibility.
47
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.ThreadPool::RunAsync(Windows.System.Threading.WorkItemHandler,Windows.System.Threading.WorkItemPriority)
48
+ @deprecated("Use run_async() instead.")
49
+ def run_with_priority_async(cls, handler: WorkItemHandler, priority: WorkItemPriority, /) -> windows_foundation.IAsyncAction: ...
50
+
51
+ @typing.final
52
+ class ThreadPool(winrt.system.Object, metaclass=ThreadPool_Static):
53
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
54
+ """A class of static members only, so there is nothing to create."""
55
+
56
+ @typing.final
57
+ class ThreadPoolTimer_Static(winrt.system.Object_Static):
58
+ @typing.overload
59
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreatePeriodicTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan)
60
+ def create_periodic_timer(cls, handler: TimerElapsedHandler, period: datetime.timedelta, /) -> ThreadPoolTimer: ...
61
+ @typing.overload
62
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreatePeriodicTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan,Windows.System.Threading.TimerDestroyedHandler)
63
+ def create_periodic_timer(cls, handler: TimerElapsedHandler, period: datetime.timedelta, destroyed: TimerDestroyedHandler, /) -> ThreadPoolTimer: ...
64
+ # Deprecated alias of create_periodic_timer() for pywinrt v3.x compatibility.
65
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreatePeriodicTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan,Windows.System.Threading.TimerDestroyedHandler)
66
+ @deprecated("Use create_periodic_timer() instead.")
67
+ def create_periodic_timer_with_completion(cls, handler: TimerElapsedHandler, period: datetime.timedelta, destroyed: TimerDestroyedHandler, /) -> ThreadPoolTimer: ...
68
+ @typing.overload
69
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreateTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan)
70
+ def create_timer(cls, handler: TimerElapsedHandler, delay: datetime.timedelta, /) -> ThreadPoolTimer: ...
71
+ @typing.overload
72
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreateTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan,Windows.System.Threading.TimerDestroyedHandler)
73
+ def create_timer(cls, handler: TimerElapsedHandler, delay: datetime.timedelta, destroyed: TimerDestroyedHandler, /) -> ThreadPoolTimer: ...
74
+ # Deprecated alias of create_timer() for pywinrt v3.x compatibility.
75
+ # Windows.System.Threading.ThreadPoolTimer Windows.System.Threading.ThreadPoolTimer::CreateTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan,Windows.System.Threading.TimerDestroyedHandler)
76
+ @deprecated("Use create_timer() instead.")
77
+ def create_timer_with_completion(cls, handler: TimerElapsedHandler, delay: datetime.timedelta, destroyed: TimerDestroyedHandler, /) -> ThreadPoolTimer: ...
78
+
79
+ @typing.final
80
+ class ThreadPoolTimer(winrt.system.Object, metaclass=ThreadPoolTimer_Static):
81
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
82
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
83
+ # System.Void Windows.System.Threading.ThreadPoolTimer::Cancel()
84
+ def cancel(self) -> None: ...
85
+ # Windows.Foundation.TimeSpan Windows.System.Threading.ThreadPoolTimer::get_Delay()
86
+ @_property
87
+ def delay(self) -> datetime.timedelta: ...
88
+ # Windows.Foundation.TimeSpan Windows.System.Threading.ThreadPoolTimer::get_Period()
89
+ @_property
90
+ def period(self) -> datetime.timedelta: ...
91
+
92
+ type TimerDestroyedHandler = typing.Callable[[ThreadPoolTimer], object]
93
+ type TimerElapsedHandler = typing.Callable[[ThreadPoolTimer], object]
94
+ type WorkItemHandler = typing.Callable[[windows_foundation.IAsyncAction], object]
File without changes
@@ -0,0 +1,44 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.System.Threading
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.System.Threading namespace
5
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
6
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: winrt-runtime<5,>=4.0.0
23
+ Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
24
+ Provides-Extra: all
25
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
26
+ Description-Content-Type: text/markdown
27
+
28
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
29
+
30
+ # winrt-Windows.System.Threading
31
+
32
+ Windows Runtime (WinRT) APIs for the `Windows.System.Threading` namespace.
33
+
34
+ This package provides the `winrt.windows.system.threading` module.
35
+
36
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
37
+ `Microsoft.Windows.SDK.CPP` NuGet package.
38
+
39
+ ```
40
+ pip install winrt-Windows.System.Threading
41
+ ```
42
+
43
+ Other WinRT namespaces are packages of their own, so install the package of
44
+ each namespace your code imports from.
@@ -0,0 +1,8 @@
1
+ winrt/windows/system/threading/__init__.py,sha256=zT5B02m8_N1BEW_rkVczqTuSJvHeYXamZRp1iCrCj30,1115
2
+ winrt/windows/system/threading/__init__.pyi,sha256=qSiF7JeIyF6ENV7qomLzBETZHjOy5XtDoemwS4B0Qb0,6162
3
+ winrt/windows/system/threading/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/system/threading/_table.pywinrt,sha256=2d-Co837eG5uXYgs3BRkiVsU15H_gTBSZRgi0BEv4ug,3376
5
+ winrt_windows_system_threading-4!10.0.28000.2705.dist-info/METADATA,sha256=Y3Fh-jf1C4oPjIkMYVNTOX7Uw1iJIFn-SZL0xehOpRM,1790
6
+ winrt_windows_system_threading-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_system_threading-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_system_threading-4!10.0.28000.2705.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE