Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundRoutine ¶
type BackgroundRoutine interface {
AsyncTask(task Task) error
SyncTask(task Task) error
SyncTaskWithTimeOut(task Task, timeout time.Duration) error
AsyncFunction(function func()) error
SyncFunction(function func()) error
SyncFunctionWithTimeOut(function func(), timeout time.Duration) error
Timer(task Task, intervalValue time.Duration, offsetValue time.Duration) error
}
func NewBackgroundRoutine ¶
func NewBackgroundRoutine(capacitySize int) BackgroundRoutine
NewBackgroundRoutine new Background routine
Click to show internal directories.
Click to hide internal directories.