github.com/15mga/kiwi@v0.0.2-0.20240324021231-b95d5c3ac751/worker/go.go (about) 1 package worker 2 3 import ( 4 "github.com/15mga/kiwi/util" 5 "github.com/panjf2000/ants/v2" 6 ) 7 8 func Go(fn util.FnAnySlc, params ...any) { 9 _ = ants.Submit(func() { 10 fn(params) 11 }) 12 }