package
Version:
v2.2.1
Opens a new window with list of versions in this module.
Published: Nov 11, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
func AddTask(task func())
AddTask 添加任务
func NewPool(opts ...Option) *defaultPool
type Option func(o *options)
WithDisablePurge 设置是否禁用清除
type Pool interface {
AddTask(task func()) error
Release()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.