File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3201,7 +3201,12 @@ cdef class Loop:
3201
3201
3202
3202
@cython.iterable_coroutine
3203
3203
async def shutdown_default_executor(self , timeout = None ):
3204
- """ Schedule the shutdown of the default executor."""
3204
+ """ Schedule the shutdown of the default executor.
3205
+
3206
+ The timeout parameter specifies the amount of time the executor will
3207
+ be given to finish joining. The default value is None, which means
3208
+ that the executor will be given an unlimited amount of time.
3209
+ """
3205
3210
self ._executor_shutdown_called = True
3206
3211
if self ._default_executor is None :
3207
3212
return
@@ -3214,7 +3219,7 @@ cdef class Loop:
3214
3219
thread.join(timeout)
3215
3220
3216
3221
if thread.is_alive():
3217
- warnings.warn (
3222
+ warnings_warn (
3218
3223
" The executor did not finishing joining "
3219
3224
f" its threads within {timeout} seconds." ,
3220
3225
RuntimeWarning ,
You can’t perform that action at this time.
0 commit comments