merge v0.23.0-rc changes
This commit is contained in:
@@ -6,9 +6,9 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
// FireAndForget executes `f()` in a new go routine and auto recovers if panic.
|
||||
// FireAndForget executes f() in a new go routine and auto recovers if panic.
|
||||
//
|
||||
// **Note:** Use this only if you are not interested in the result of `f()`
|
||||
// **Note:** Use this only if you are not interested in the result of f()
|
||||
// and don't want to block the parent go routine.
|
||||
func FireAndForget(f func(), wg ...*sync.WaitGroup) {
|
||||
if len(wg) > 0 && wg[0] != nil {
|
||||
|
||||
Reference in New Issue
Block a user