Python 标准库参考指南 3.6.15
call_soon_threadsafe(callback, *args) Like call_soon(), but thread safe. 参见concurrency and multithreading 部分的文档。 Delayed calls The event loop has its own internal clock for computing timeouts. Which format(exc)) else: print('The coroutine returned: {!r}'.format(result)) 参见concurrency and multithreading 部分的文档。 注解: Unlike other functions from the module, run_coroutine_threadsafe() requires the loop from fut # ... The shield() function can also be used to ignore cancellation. Concurrency and multithreading An event loop runs in a thread and executes all callbacks and tasks in the same thread. While0 码力 | 1886 页 | 8.95 MB | 9 月前3Python 标准库参考指南 3.6.15
call_soon_threadsafe(callback, *args) Like call_soon(), but thread safe. 参见concurrency and multithreading 部分的文档。 Delayed calls The event loop has its own internal clock for computing timeouts. Which format(exc)) else: print('The coroutine returned: {!r}'.format(result)) 参见concurrency and multithreading 部分的文档。 注解: Unlike other functions from the module, run_coroutine_threadsafe() requires the loop from fut # ... The shield() function can also be used to ignore cancellation. Concurrency and multithreading An event loop runs in a thread and executes all callbacks and tasks in the same thread. While0 码力 | 1886 页 | 8.95 MB | 9 月前3Python 标准库参考指南 3.7.13
exception: {exc!r}') else: print(f'The coroutine returned: {result!r}') 参见concurrency and multithreading 部分的文档。 不同与其他 asyncio 函数,此函数要求显式地传入 loop 参数。 3.5.1 新版功能. 内省 asyncio.current_task(loop=None) call_soon_threadsafe(callback, *args, context=None) call_soon() 的线程安全变体。必须被用于安排 来自其他线程的回调。 参见concurrency and multithreading 部分的文档。 在 3.7 版更改: 加入键值类形参 context。请参阅 PEP 567 查看更多细节。 注解: 大多数asyncio 的调度函数不让传递关键字参数。为此,请使用functools0 码力 | 1846 页 | 9.09 MB | 9 月前3Python 标准库参考指南 3.7.13
exception: {exc!r}') else: print(f'The coroutine returned: {result!r}') 参见concurrency and multithreading 部分的文档。 不同与其他 asyncio 函数,此函数要求显式地传入 loop 参数。 3.5.1 新版功能. 内省 asyncio.current_task(loop=None) call_soon_threadsafe(callback, *args, context=None) call_soon() 的线程安全变体。必须被用于安排 来自其他线程的回调。 参见concurrency and multithreading 部分的文档。 在 3.7 版更改: 加入键值类形参 context。请参阅 PEP 567 查看更多细节。 注解: 大多数asyncio 的调度函数不让传递关键字参数。为此,请使用functools0 码力 | 1961 页 | 9.14 MB | 9 月前3Python 标准库参考指南 3.8.20
exception: {exc!r}') else: print(f'The coroutine returned: {result!r}') 参见concurrency and multithreading 部分的文档。 不同于其他 asyncio 函数,此函数要求显式地传入 loop 参数。 3.5.1 新版功能. 800 Chapter 18. 网络和进程间通信 The Python call_soon_threadsafe(callback, *args, context=None) call_soon() 的线程安全变体。必须被用于安排 来自其他线程的回调。 参见concurrency and multithreading 部分的文档。 在 3.7 版更改: 加入键值类形参 context。请参阅 PEP 567 查看更多细节。 注解: 大多数asyncio 的调度函数不让传递关键字参数。为此,请使用functools0 码力 | 1927 页 | 9.69 MB | 9 月前3Python 标准库参考指南 3.8.20
exception: {exc!r}') else: print(f'The coroutine returned: {result!r}') 参见concurrency and multithreading 部分的文档。 不同于其他 asyncio 函数,此函数要求显式地传入 loop 参数。 3.5.1 新版功能. 800 Chapter 18. 网络和进程间通信 The Python call_soon_threadsafe(callback, *args, context=None) call_soon() 的线程安全变体。必须被用于安排 来自其他线程的回调。 参见concurrency and multithreading 部分的文档。 在 3.7 版更改: 加入键值类形参 context。请参阅 PEP 567 查看更多细节。 注解: 大多数asyncio 的调度函数不让传递关键字参数。为此,请使用functools0 码力 | 1927 页 | 9.69 MB | 9 月前3Python 标准库参考指南 3.8.20
exception: {exc!r}') else: print(f'The coroutine returned: {result!r}') 参见concurrency and multithreading 部分的文档。 不同于其他 asyncio 函数,此函数要求显式地传入 loop 参数。 3.5.1 新版功能. 内省 asyncio.current_task(loop=None) call_soon_threadsafe(callback, *args, context=None) call_soon() 的线程安全变体。必须被用于安排 来自其他线程的回调。 参见concurrency and multithreading 部分的文档。 在 3.7 版更改: 加入键值类形参 context。请参阅 PEP 567 查看更多细节。 注解: 大多数asyncio 的调度函数不让传递关键字参数。为此,请使用functools0 码力 | 2052 页 | 9.74 MB | 9 月前3Python 标准库参考指南 3.10.15
exception: {exc!r}') else: print(f'The coroutine returned: {result!r}') 参见concurrency and multithreading 部分的文档。 不同于其他 asyncio 函数,此函数要求显式地传入 loop 参数。 3.5.1 新版功能. 内省 asyncio.current_task(loop=None) Reference, 发布 3.10.15 如果在已被关闭的循环上调用则会引发RuntimeError。这可能会在主应用程序被关闭时在二级 线程上发生。 参见concurrency and multithreading 部分的文档。 在 3.7 版更改: 加入键值类形参 context。请参阅 PEP 567 查看更多细节。 注解: 大多数asyncio 的调度函数不让传递关键字参数。为此,请使用functools0 码力 | 2072 页 | 10.39 MB | 9 月前3Python 标准库参考指南 3.10.15
exception: {exc!r}') else: print(f'The coroutine returned: {result!r}') 参见concurrency and multithreading 部分的文档。 不同于其他 asyncio 函数,此函数要求显式地传入 loop 参数。 3.5.1 新版功能. 内省 asyncio.current_task(loop=None) _soon() 不 是线程安全的。 如果在已被关闭的循环上调用则会引发RuntimeError。这可能会在主应用程序被关闭时在二级线程 上发生。 参见concurrency and multithreading 部分的文档。 在 3.7 版更改: 加入键值类形参 context。请参阅 PEP 567 查看更多细节。 注解: 大多数asyncio 的调度函数不让传递关键字参数。为此,请使用functools0 码力 | 2207 页 | 10.45 MB | 9 月前3Python 标准库参考指南 3.9.20
exception: {exc!r}') else: print(f'The coroutine returned: {result!r}') 参见concurrency and multithreading 部分的文档。 不同于其他 asyncio 函数,此函数要求显式地传入 loop 参数。 3.5.1 新版功能. 内省 asyncio.current_task(loop=None) 的线程安全变体。必须被用于安排 来自其他线程的回调。 如果在已被关闭的循环上调用则会引发RuntimeError。这可能会在主应用程序被关闭时在二级线程 上发生。 参见concurrency and multithreading 部分的文档。 在 3.7 版更改: 加入键值类形参 context。请参阅 PEP 567 查看更多细节。 注解: 大多数asyncio 的调度函数不让传递关键字参数。为此,请使用functools0 码力 | 2146 页 | 10.17 MB | 9 月前3
共 50 条
- 1
- 2
- 3
- 4
- 5