package
1.1.1
Repository: https://github.com/userzhangjinlong/go-zero.git
Documentation: pkg.go.dev

# Functions

GoSafe runs the given fn using another goroutine, recovers if fn panics.
GoSafeCtx runs the given fn using another goroutine, recovers if fn panics with ctx.
NewRoutineGroup returns a RoutineGroup.
NewTaskRunner returns a TaskRunner.
NewWorkerGroup returns a WorkerGroup with given job and workers.
RoutineId is only for debug, never use it in production.
RunSafe runs the given fn, recovers if fn panics.
RunSafeCtx runs the given fn, recovers if fn panics with ctx.

# Structs

A RoutineGroup is used to group goroutines together and all wait all goroutines to be done.
A TaskRunner is used to control the concurrency of goroutines.
A WorkerGroup is used to run given number of workers to process jobs.