forked from mirror/ants
🐉 Adapt ants for explicit functions
This commit is contained in:
parent
64b763c558
commit
6cf3ef96e6
2
ants.go
2
ants.go
|
@ -70,7 +70,7 @@ var (
|
||||||
var defaultAntsPool, _ = NewPool(DefaultAntsPoolSize)
|
var defaultAntsPool, _ = NewPool(DefaultAntsPoolSize)
|
||||||
|
|
||||||
// Submit submits a task to pool.
|
// Submit submits a task to pool.
|
||||||
func Submit(task f) error {
|
func Submit(task func()) error {
|
||||||
return defaultAntsPool.Submit(task)
|
return defaultAntsPool.Submit(task)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue