书栈网 · BookStack 本次搜索耗时 0.019 秒,为您找到 769 个相关结果.
  • The asyncio loop engine (CPython >= 3.4, uWSGI >= 2.0.4)

    The asyncio loop engine (CPython >= 3.4, uWSGI >= 2.0.4) Why not map the WSGI callable to a coroutine? Callback vs. coroutines Building uWSGI with asyncio support The first exam...
  • 18.5. asyncio — Asynchronous I/O, event loop, coroutines and tasks

    18.5. asyncio — Asynchronous I/O, event loop, coroutines and tasks 18.5. asyncio — Asynchronous I/O, event loop, coroutines and tasks 3.4 新版功能. Source code: Lib/asyncio/ ...
  • 22 异步I/O

    1569 2020-10-22 《Python学习教程》
    Python学习—22 异步I/O 协程 asyncio async/await aiohttp Python学习—22 异步I/O 在同步IO中,线程启动一个IO操作然后就立即进入等待状态,直到IO操作完成后才醒来继续执行。而异步IO方式中,线程发送一个IO请求到内核,然后继续处理其他的事情,内核完成IO请求后,将会通知线程IO操作完成...
  • Runners

    Runners Running an asyncio Program Runner context manager Handling Keyboard Interruption Runners Source code: Lib/asyncio/runners.py This section outlines high-level async...
  • 同步原语

    同步原语 Lock 事件 Condition Semaphore BoundedSemaphore Barrier 同步原语 源代码: Lib/asyncio/locks.py asyncio 同步原语被设计为与 threading 模块的类似,但有两个关键注意事项: asyncio 原语不是线程安全的,因此它们不应被用于 O...
  • Installation

    Installation I’m getting an error about greenlet not being installed when I try to use asyncio Installation I’m getting an error about greenlet not being installed when I try ...
  • 子进程集

    子进程集 创建子进程 常量 与子进程交互 子进程和线程 例子 子进程集 源代码: Lib/asyncio/subprocess.py , Lib/asyncio/base_subprocess.py 本节介绍了用于创建和管理子进程的高层级 async/await asyncio API。 下面的例子演示了如何用 asyncio 运行...
  • 扩展

    扩展 编写自定义事件循环 Future 和 Task 私有构造器 Task 生命周期支持 扩展 asyncio 扩展的主要方向是编写自定义的 事件循环 类。 asyncio 具有可以被用来简化此任务的辅助工具。 备注 第三方应当小心谨慎地重用现有的异步代码,新的 Python 版本可以自由地打破 API 的 内部 部分的向下兼容性。 编...
  • Extending

    Extending Writing a Custom Event Loop Future and Task private constructors Task lifetime support Extending The main direction for asyncio extending is writing custom event l...
  • Asynchronous programming

    Asynchronous programming Exercises with asyncio Asynchronous programming So far we have been doing synchronous programming. Synchronous program execution is quite simple: a pr...