Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
type Wrapper interface {
Run(func())
}
Wrapper is used to wrap a function that will run in a goroutine.
var DefaultWrapper Wrapper = NewWrapper(nil, nil)
func NewWrapper ¶
func NewWrapper(before, after func()) Wrapper
Click to show internal directories.
Click to hide internal directories.