23
23
24
24
25
25
@overload
26
- def threaded (__function : TargetFunction [P , T ]) -> NoParamReturn [P , T ]:
27
- ...
26
+ def threaded (__function : TargetFunction [P , T ]) -> NoParamReturn [P , T ]: ...
28
27
29
28
30
29
@overload
@@ -35,8 +34,7 @@ def threaded(
35
34
ignore_errors : Sequence [type [Exception ]] = (),
36
35
suppress_errors : bool = False ,
37
36
** overflow_kwargs : Overflow_In ,
38
- ) -> WithParamReturn [P , T ]:
39
- ...
37
+ ) -> WithParamReturn [P , T ]: ...
40
38
41
39
42
40
@overload
@@ -48,8 +46,7 @@ def threaded(
48
46
ignore_errors : Sequence [type [Exception ]] = (),
49
47
suppress_errors : bool = False ,
50
48
** overflow_kwargs : Overflow_In ,
51
- ) -> FullParamReturn [P , T ]:
52
- ...
49
+ ) -> FullParamReturn [P , T ]: ...
53
50
54
51
55
52
def threaded (
@@ -90,8 +87,7 @@ def threaded(
90
87
91
88
You can also pass keyword arguments to change the thread behaviour, it otherwise follows the defaults of `thread.Thread`
92
89
>>> @thread.threaded(daemon = True)
93
- >>> def myfunction():
94
- ... ...
90
+ >>> def myfunction(): ...
95
91
96
92
Args will be ordered infront of function-parsed args parsed into `thread.Thread.args`
97
93
>>> @thread.threaded(args = (1))
0 commit comments