Documentation ¶
Overview ¶
Package background provides the background service. This service is used to manage the background goroutines in the backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Background ¶
type Background struct {
// contains filtered or unexported fields
}
Background is the background service. It is responsible for managing background routines.
func (*Background) AttachGoroutine ¶
func (b *Background) AttachGoroutine(f func(ctx context.Context))
AttachGoroutine creates a goroutine on a given function and tracks it using the background's WaitGroup.
func (*Background) Close ¶
func (b *Background) Close()
Close closes the background service. This will wait for all goroutines to exit.
Click to show internal directories.
Click to hide internal directories.