mirror of
https://github.com/stashapp/stash.git
synced 2025-12-09 09:53:40 +01:00
Rather than passing a pointer to a waitgroup into task.Start(..) functions, handle the waitgroup.Done() at the callsite. This makes waitgroup handling local to its definition rather than it being spread out over multiple files. Tasks now simply execute, and the policy of waiting on them is handled by the caller.
6 lines
75 B
Go
6 lines
75 B
Go
package manager
|
|
|
|
type Task interface {
|
|
Start()
|
|
GetDescription() string
|
|
}
|