蚂蚁是Go最强大最可靠的集合解决方案.
<p对齐="中心">
Goroutine游泳池为Go
</>
<a title="Build status"目标="" blank"href="https://github.com/panjf2000/ants/actions?query=workflow%3ATests">" 互联网档案馆的存檔,存档日期2013-12-02.
<a title="Codecov"目标="" blank"href="ZZURL1Z"
<a标题="释放"目标=" blank"href="ZZURL2Z"
<a title="Tag"目标="" blank"href="https://github.com/panjf2000/ants/tags">".
< br/> (韩语)
<a title="最小版本"目标="" blank" href="ZZURL4Z"
<a title="Doc for ants"目标=""''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
<a title="Mentioned in Sweet Go" 目标="" blank" href="https://github.com/avelino/awesome-go#goroutines">"
英语 QQ [中文 (README ZH.md)
导 言
图书馆的 " 蚂蚁 " 执行固定容量的 " 花序 " 池,管理和回收大量花序,使开发者能够限制在同时进行的程序中花序的数量。
##QQ地物:
□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□
QQ 流程图
<p对齐="中心">
(中文(简体) ).活动图表
□ □ □ 如何安装
`蚂蚁 ' v1
(原始内容存档于2019-09-29) (英语). ``` powershell go get -u github.com/panjf2000/ants
`蚂蚁 ' v2(用GO111MODULE=on)
ZZ1ZZ
# # 如何使用 # # # # # # # 如何使用 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
检查[例 (https://pkg.go.dev/github.com/panjf2000/ants/v2#pkg-examples) 基本使用.
集合功能选项
蚂蚁。 选项`包含蚂蚁池的所有可选配置,这使您能够通过使用选项功能来设置“NewPool”/“NewPoolWithFunc”/“NewPo”中的每个配置来定制goroutine池