mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-04 11:07:26 +01:00
merge v0.23.0-rc changes
This commit is contained in:
1 parent
ad92992324
commit
844f18cac3
753 files changed
+85107
-63362
No files matched your search
@@ -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