Documentation ¶
Overview ¶
this is a "simple" abstraction making it easy to handle arbitrary functions concurrently.
I really wish i could make this simpler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandlerFunc ¶
type ErrorHandlerFunc func(error)
type Handler ¶
func New ¶
func New(hf HandlerFunc, ehf ErrorHandlerFunc) Handler
if a concurrent handler errors, it is expected to end, using (*handler).Start() to start it again. problems will arrise if you do not ensure this.
type HandlerFunc ¶
type HandlerFunc func(chan struct{}, chan error)
Click to show internal directories.
Click to hide internal directories.