This commit is contained in:
邹宗楠
2024-01-10 09:28:12 +08:00
parent 31ca7605c8
commit 5cd7764c6e
7 changed files with 223 additions and 202 deletions

View File

@@ -4,6 +4,13 @@ import (
"sync"
)
var Poll *Pool
func init() {
Poll = NewPool(500)
Poll.Start()
}
type Job func()
type Worker struct {