Documentation
¶
Index ¶
Constants ¶
View Source
const StopSignal = "STOP!"
Variables ¶
View Source
var GlobalUnboundedExecutor = NewUnboundedExecutor()
GlobalUnboundedExecutor has the life cycle of the program itself any goroutine want to be shutdown before main exit can be started from this executor
View Source
var LogInfo = func(event string, properties ...interface{}) {
}
View Source
var LogPanic = func(recovered interface{}, properties ...interface{}) interface{} { fmt.Println(fmt.Sprintf("paniced: %v", recovered)) debug.PrintStack() return recovered }
Functions ¶
This section is empty.
Types ¶
type UnboundedExecutor ¶
type UnboundedExecutor struct {
// contains filtered or unexported fields
}
func NewUnboundedExecutor ¶
func NewUnboundedExecutor() *UnboundedExecutor
func (*UnboundedExecutor) Go ¶
func (executor *UnboundedExecutor) Go(handler func(ctx context.Context))
func (*UnboundedExecutor) Stop ¶
func (executor *UnboundedExecutor) Stop()
func (*UnboundedExecutor) StopAndWait ¶
func (executor *UnboundedExecutor) StopAndWait(ctx context.Context)
func (*UnboundedExecutor) StopAndWaitForever ¶
func (executor *UnboundedExecutor) StopAndWaitForever()
Click to show internal directories.
Click to hide internal directories.