🐉 Adapt ants for explicit functions

This commit is contained in:
Andy Pan 2019-02-02 10:34:14 +08:00
parent 64b763c558
commit 6cf3ef96e6
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }