Tornado
稳定版
  • 用户指南
  • Web 框架
  • HTTP 服务器和客户端
  • 异步网络
  • 协程和并发
    • tornado.gen — 基于生成器的协程
    • tornado.locks – 同步原语
    • tornado.queues – 协程的队列
    • tornado.process — 多进程工具
  • 与其他服务的集成
  • 工具
  • 常见问题解答
  • 发行说明
Tornado
  • 协程和并发
  • 在 GitHub 上编辑

协程和并发¶

  • tornado.gen — 基于生成器的协程
    • 装饰器
      • coroutine()
      • 返回值
    • 工具函数
      • with_timeout()
      • sleep()
      • WaitIterator
        • WaitIterator.done()
        • WaitIterator.next()
      • multi()
      • multi_future()
      • convert_yielded()
      • maybe_future()
      • is_coroutine_function()
      • moment
  • tornado.locks – 同步原语
    • Condition
      • Condition
        • Condition.wait()
        • Condition.notify()
        • Condition.notify_all()
    • Event
      • Event
        • Event.is_set()
        • Event.set()
        • Event.clear()
        • Event.wait()
    • Semaphore
      • Semaphore
        • Semaphore.release()
        • Semaphore.acquire()
    • BoundedSemaphore
      • BoundedSemaphore
        • BoundedSemaphore.release()
        • BoundedSemaphore.acquire()
    • Lock
      • Lock
        • Lock.acquire()
        • Lock.release()
  • tornado.queues – 协程的队列
    • 类
      • Queue
        • Queue
          • Queue.maxsize
          • Queue.qsize()
          • Queue.put()
          • Queue.put_nowait()
          • Queue.get()
          • Queue.get_nowait()
          • Queue.task_done()
          • Queue.join()
      • PriorityQueue
        • PriorityQueue
      • LifoQueue
        • LifoQueue
    • 异常
      • QueueEmpty
        • QueueEmpty
      • QueueFull
        • QueueFull
  • tornado.process — 多进程工具
    • CalledProcessError
    • cpu_count()
    • fork_processes()
    • task_id()
    • Subprocess
      • Subprocess.set_exit_callback()
      • Subprocess.wait_for_exit()
      • Subprocess.initialize()
      • Subprocess.uninitialize()
上一页 下一页

© 版权所有 Tornado 作者。 修订版 2a0e1d13.

使用 Sphinx 构建,使用 主题,由 Read the Docs 提供。