mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-19 06:59:50 +02:00
refactor: improve task management with xsync for concurrent access and enhance callback and subtasks handling as well as memory allocation
This commit is contained in:
19
internal/task/task_prod.go
Normal file
19
internal/task/task_prod.go
Normal file
@@ -0,0 +1,19 @@
|
||||
//go:build !debug
|
||||
|
||||
package task
|
||||
|
||||
func panicWithDebugStack() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
func panicIfFinished(t *Task, reason string) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
func logStarted(t *Task) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
func logFinished(t *Task) {
|
||||
// do nothing
|
||||
}
|
||||
Reference in New Issue
Block a user