跳转至主要内容
Ctrl+K
pygallery  文档 - Home pygallery  文档 - Home
  • GitHub
  • 知乎
  • 简书
  • B站
  • 博客园
  • 领英
  • Python 学习手册
    • Python 基础教程
      • Python 简介
        • 解读 Python 世界的修炼体系
        • Python 基本数据类型
      • 函数
      • 容器
        • 集合
        • 字典
        • 序列
      • 流程控制
      • 模块
      • argparse
      • 模板
      • 多线程
      • 日志记录
      • 弱引用
      • 输入与输出
      • match 语句
    • 配置管理
      • datashader
      • param
    • 常见问题
      • Python 包安装
    • Python 参考手册
      • 内置常量
      • 术语中英对照表
      • 术语表
        • 基本术语
        • 异常
        • 标识符
        • 字面值
      • Python 学习资源
    • 抽象基类
    • 类型提示
    • 描述器
    • 测试代码
    • 草稿
      • 一、5 个值得在 2018 年关注的库
      • 存储数据
      • 类也是对象
      • 描述器是什么?
      • 字符编码方法
      • 类型和运算 (Types and Operations)
      • 函数基础
      • class
      • 回收站
      • 异常(draft)
      • I/O操作(draft)
      • 迭代&生成(draft)
      • Python 中的数学(draft)
      • OOP: The Big Picture
      • 运算符(draft)
      • re
      • 网络
      • 字符编码方法
      • Python 数据类型转换(draft)
      • 爬虫
  • 任务
    • Prefect
      • Prefect 简介
      • 教程
        • 快速上手 Prefect
        • 流程调度
        • 构建数据管道
        • 从网站提取数据
      • 开发手册
        • 编写与运行工作流程
        • 配置运行时行为
        • 管理状态和配置
        • 管理并发
        • 管理设置
      • 部署
        • Deploy overview
        • Run flows in local processes
        • 基础设施概念
        • 基础设施示例
        • 静态基础设施示例
        • Daemonize worker processes
      • 自动化概述
        • 调度流程运行
        • 事件
    • ControlFlow
      • ControlFlow 简介
    • MarkItDown
    • Manim
      • 快速上手 Manim
      • Manim 的输出设置
      • Manim 的构建模块
      • Thematic Guides
        • Configuration
        • A deep dive into Manim's internals
        • 为视频添加配音
        • Welcome to Manim!
        • Manim v0.11.0 Release Tour
    • Pycairo
      • 用 Python 介绍 Cairo
      • 集成 Pillow 库
      • 集成 Pygame
      • 集成 NumPy
      • Cairo 示例代码片段及输出
      • 集成 gtk
        • 基于 cairo-demo/X11/cairo-demo.c
        • cairo knockout
        • 展示 png 文件
      • snippet
        • snippet 样例
    • nbgrader
      • 安装
      • 高亮
  • Python 库
    • typing 对类型提示的支持
    • contextvars
      • contextvars 简介
    • sched 事件调度器
    • IPython
      • 定义自定义魔法命令
      • 嵌入 IPython
      • IPython 内建魔法命令
    • Jupyter 组件教程
      • Jupyter 组件指南
        • IPython 简单组件
        • IPython 组件清单
        • 输出小部件:利用 Jupyter 的显示系统
        • IPython Widget Events
        • Jupyter小部件的样式设置
        • Jupyter小部件的布局
        • 使用布局模板
        • 交互函数
        • 异步小部件
      • ipywidgets 高级教程
        • 构建自定义小部件 - 电子邮件小部件
      • Jupyter 部件原理
        • 低级小部件解释
      • 在其他环境中嵌入 Jupyter 小部件,而非笔记本
      • Jupyter 组件样例
        • Weather map
        • 图片浏览器
        • 媒体部件
        • 使用 NetworkX 探索随机图
        • 使用 SymPy 因式分解多项式
        • 使用 Audio 对象探索拍频现象
        • 在 Jupyter Notebook 中使用游戏控制器
        • 探索洛伦兹微分方程系统
        • 变量检查器部件
        • 对齐部件
        • 使用 skimage 进行图像处理
    • PIL
      • 使用 Image 类
    • NumPy
      • 什么是 NumPy?
      • NumPy:初学者的绝对基础
      • 数组创建
      • 对 ndarrays 的索引
      • Importing data with genfromtxt()
      • 广播
      • 拷贝与视图
      • Working with Arrays of Strings And Bytes
      • Structured arrays
      • Writing custom array containers
      • 与 NumPy 的互操作性
      • Subclassing ndarray
      • NumPy 教程
        • Determining Moore’s Law with real data in NumPy
        • Saving and sharing your NumPy arrays
        • Analyzing the impact of the lockdown on air quality in Delhi, India
        • Deep learning on MNIST
        • Deep reinforcement learning with Pong from pixels
        • Masked Arrays
        • Plotting Fractals
        • Determining Static Equilibrium in NumPy
        • Linear algebra on n-dimensional arrays
        • X-ray image processing
    • matplotlib
      • matplotlib 教程
        • pyplot 教程
        • 图片教程
        • The Lifecycle of a Plot
        • Artist tutorial
      • matplotlib.widgets
        • 带注解的光标
        • 按钮
        • 检查按钮
        • Cursor
        • 套索选择器
        • 菜单
        • Mouse Cursor
        • Multicursor
        • Select indices from a collection using polygon selector
        • Polygon Selector
        • Radio Buttons
        • Thresholding an Image with RangeSlider
        • Rectangle and ellipse selectors
        • Slider
        • Snapping Sliders to Discrete Values
        • Span Selector
        • Textbox
      • Matplotlib 事件处理
        • matplotlib 关闭事件
        • 鼠标移动和点击事件
        • 十字准线光标
        • 数据浏览器
        • 图形/坐标轴进入和离开事件
        • 交互式函数
        • 滚动事件
        • 按键事件
        • 套索演示
        • 图例选择
        • 观察镜
        • 路径编辑器
        • 选择事件演示
        • 多边形编辑器
        • 乒乓球游戏
        • 重采样数据
        • 计时器
        • Trifinder 事件演示
        • 视图限制
        • 缩放窗口
      • 在 GUI 中嵌入 Matplotlib
        • 嵌入 Qt
        • 嵌入 Tk
        • SVG 直方图
        • SVG 工具提示
        • 工具管理器
        • 在 WX 中添加光标
        • 图片浏览器
      • 图像、轮廓和场
        • Affine transform of an image
        • Wind Barbs
        • Barcode
        • Interactive Adjustment of Colormap Range
        • Colormap normalizations
        • Colormap normalizations SymLogNorm
        • Contour Corner Mask
        • Contour Demo
        • Contour Image
        • Contour Label Demo
        • Contourf demo
        • Contourf Hatching
        • Contourf and log color scale
        • Contouring the solution space of optimizations
        • BboxImage Demo
        • Figimage 演示
        • Creating annotated heatmaps
        • Image antialiasing
        • Clipping images with patches
        • 绘制图像的多种方法
        • Image Masked
        • Image nonuniform
        • Blend transparency with color in 2D images
        • Modifying the coordinate formatter
        • Interpolations for imshow
        • Contour plot of irregularly spaced data
        • Layer Images
        • Visualize matrices with matshow
        • Multiple images with one colorbar
        • pcolor images
        • pcolormesh grids and shading
        • pcolormesh
        • Streamplot
        • QuadMesh Demo
        • Advanced quiver and quiverkey functions
        • Quiver Simple Demo
        • Shading example
        • Spectrogram
        • Spy Demos
        • Tricontour Demo
        • Tricontour Smooth Delaunay
        • Tricontour Smooth User
        • Trigradient Demo
        • Triinterp Demo
        • Triplot Demo
        • Watermark image
      • 形状和集合
        • Arrow guide
        • Matplotlib 图形元素参考
        • Line, Poly and RegularPoly Collection with autoscaling
        • Compound path
        • Dolphins
        • Mmh Donuts!!!
        • Ellipse with orientation arrow demo
        • Ellipse Collection
        • Ellipse Demo
        • Drawing fancy boxes
        • Hatch demo
        • Hatch style reference
        • Plotting multiple lines with a LineCollection
        • 圆形、扇形和多边形
        • PathPatch object
        • Bezier Curve
        • Scatter plot
      • 文本、标签和注解
        • 艺术家中的艺术家
      • matplotlib 设计原理
        • Quick start guide
        • 图表和后端
        • Customizing Matplotlib with style sheets and rcParams
        • imshow() 之 origin 和 extent
    • TVM
    • PyTorch
    • TensorFlow
    • xbook
    • Tkinter
      • Tkinter 基础
        • tkinter 简介
        • Tk 概念
        • 基本小部件
        • 网格几何管理器
        • 更多小部件
        • 事件循环
        • 菜单处理
        • 窗口与对话框
        • 组织复杂的界面
        • 字体、颜色、图像
        • 画布
        • 文本
        • Treeview
        • 样式与主题
      • tkinter 事件
        • tkinter 事件绑定
        • 如何在 tkinter 中创建虚拟事件
      • tkinter 绘图
        • tkinter.Canvas 示例
      • tkinter 运行多线程任务
      • tkinter 其他例子
        • 窗口的 wm_overrideredirect 方法
        • 自定义 ToolTip
        • 使用 tix.Balloon 实现 ToolTip
        • 自定义绘图工具
        • 1 可绑定“动作”的按钮
        • tkinter 基础示例
        • 示例3
        • 自定义的文本编辑器
        • Tips
        • tkinter 之窗口设计
        • tkinter 使用鼠标选择图形的颜色以及形状
        • tkinter 创建可以输入复杂算式的计算器
        • 绘制动画
        • tkinter 嵌入到 Matplotlib
    • Qt
      • qt 简介
      • Qt 快速上手
      • 在 Qt 界面中显示 OpenCV 图像
    • ModernGL
      • 从 PyPI(pip)获取
      • OpenGL 简介
    • Gymnasium
      • Gymnasium 简介
      • Gymnasium 基础
      • 训练智能体
      • 创建自定义环境
      • 记录智能体行为
      • 加速训练
      • 与 Gym 的兼容性
      • 迁移指南 - 从 v0.21 到 v1.0.0
      • Gym 教程
        • 处理时间限制
        • 实现自定义包装器
        • 创建自定义环境
        • 使用 Vector Env 和 Domain Randomization 训练 A2C
      • 训练智能体
        • Training using REINFORCE for Mujoco
        • Frozenlake benchmark
    • gym-multigrid
      • gym-multigrid 简介
      • 创建 Multigrid 新环境
      • Collect Game
        • 创建 Collect 环境包装器
    • DRLHP
      • DRLHP 简介
      • drlhp.PrefDB 测试
      • drlhp.utils 测试
      • drlhp.pref_interface.PrefInterface 测试
      • drlhp.reward_predictor.RewardPredictorNetwork 测试
      • HumanPreferencesEnvWrapper 解读
      • 测试代码
    • faulthandler — 转储 Python 回溯信息
    • 文本处理
      • 格式字符串字面值
      • 字符串常量和模板
      • 文本段落格式化
      • 正则表达式
        • re 简介
      • 字符比较
    • ctypes — Python 的外部函数库
      • ctypes 简介
      • 加载动态链接库实战
    • CFFI
      • CFFI 快速上手
      • 使用 CFFI ffi/lib 对象
    • pybind11 - C++11 与 Python 之间的无缝操作
    • cppyy
      • cppyy 概述
      • 安装 cppyy
      • cppyy 快速指南
      • Cppyy 教程
      • GSL Python 化教程
      • cppyy 顶层
      • cppyy 基本类型
      • cppyy 字符串/Unicode
      • Pythonizations
    • Ping3
      • Ping3 简介
    • 对象注解
    • Ray
  • Jupyter
    • ipywidgets
    • jupyterlite
    • jupyterlite-sphinx
  • 编译器
    • 部署
      • Python 部署
      • SCons:软件构建工具
        • SCons 简介
      • Python 编译器 Nuitka
        • Nuitka 简介
        • 打包样例
      • PDM
        • PDM 简介
        • 用法
        • 编写 pyproject.toml
        • 插件
        • PDM 后端
      • 打包
      • Gradio: 用Python构建机器学习网页APP
      • 其他
  • 主题手册
    • Sphinx 拓展
      • 测试 sphinx 插件 helloworld
      • Thebe
        • 快速上手
        • 配置 Thebe
        • 安全性考虑
        • 事件钩子
        • 用户界面
        • 当Thebe启动时运行单元格
        • 最小示例
      • sphinx-proof
        • 语法指南
        • 选项
    • 并发
      • 异步任务
      • Awaitable
      • coroutine
      • Future
      • 任务
      • 启动并行任务
      • 定时刷新显示时间
    • Apache Arrow
      • PyArrow
      • pyarrow 快速上手
      • 数据类型和内存中的数据模型
      • 计算函数
      • 内存和 IO 接口
      • 流式传输、序列化和 IPC
      • 文件系统接口
      • numpy 集成
      • Pandas 集成
      • DLPack 协议
      • Apache Parquet 格式的读取与写入
      • 表格型数据集
      • CUDA 集成
      • Arrow 列式格式
      • pyarrow.Tensor
      • pyarrow.DataType
    • PyTables
      • PyTables 简介
      • PyTables 快速上手
      • 浏览对象树
      • 将数据提交到表和数组
      • filenode - 使用 PyTables 模拟文件系统
    • 人工智能
      • 对抗样本
      • 对抗训练
    • 工具
      • 任务管理
        • fsspec:Python 的文件系统接口
        • Invoke
        • Paramiko
        • Fabric
        • Patchwork
        • Invocations
        • Rich
        • Ciphey
      • tabulate 字符串样式的格式化表格
      • norfair
    • 图像处理
      • 图像处理基础知识
        • 图像处理简介
    • 位元流
    • PyGithub
      • PyGithub 简介
      • 存储库
      • 分支
      • 创建和收听 Webhooks
    • 办公
      • python-docx
      • openpyxl
        • openpyxl 操作 Excel
        • 创建简单的电子表格和条形图
        • 富文本
        • 工作簿
        • 表格
      • pypiwin32
      • Excel 与 Anaconda 工具箱的结合
    • 网络
      • lxml
      • telnetlib3
        • telnetlib3 快速上手
      • 使用 html5tagger 生成 HTML5:快速、纯 Python、无依赖
        • html5tagger 快速上手
    • Vega —— 可视化语法
      • Vega 简介
    • Bokeh
      • Bokeh 简介
    • 元编程
      • 描述器
      • Python 字节码反汇编器
      • 装饰器定义为类
      • IPython 渲染
    • PEP
      • PEP 594 Python 标准库大瘦身
    • 论文
    • 混沌(Python)
      • abc 抽象基类
      • 注解
      • argparse
      • 自定义数字
      • 使用 IPython.display.Code 高亮代码
      • 元类
      • 临时区
      • 占用内存空间
      • 系统相关
      • 自定义计时器
    • 临时缓冲区
  • 博客
  • DaoField
  • 问题集
    • matplotlib 相关问题
      • 数学文本
        • 数学文本样例
        • 数学字体系列
        • 放置文本框
        • 带有非拉丁字形的文本
      • 使用文本作为路径
  • 资源站
    • 工具箱
    • 临时资源
    • 资讯
    • 混沌
      • GUI
      • Web
      • NLP
      • 学习资源
      • GitHub 相关问题
      • 常见错误
  • 关于
    • 特性
    • 项目使用
    • 参考
  • API Reference
    • pygallery
  • .md

管理并发

管理并发#

  • Run tasks concurrently or in parallel
    • Configure a task runner
    • Access results from submitted tasks
    • Mapping over iterables
    • Use multiple task runners
  • Limit concurrent task runs with tags
    • Execution behavior
    • Configure concurrency limits
      • CLI
      • Python client
  • Apply global concurrency and rate limits
    • Manage global concurrency and rate limits
      • Active vs. inactive limits
      • Slot decay
      • Through the UI
      • Through the CLI
    • Using the concurrency context manager
    • Using rate_limit
    • Use concurrency and rate_limit outside of a flow
    • Use cases
      • Throttling task submission
      • Manage database connections
      • Parallel data processing
    • Other ways to limit concurrency

上一页

Securely store typed configuration

下一页

Run tasks concurrently or in parallel

作者: xinetzone

© Copyright 2021, xinetzone.

© Copyright 2021, xinetzone.

由 Sphinx 8.1.3创建。