Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wait ¶
type Wait interface { // Wait wait to the work execute finished Wait() error }
Wait the interface that implements execute work synchronously
type WaitDone ¶
type WaitDone interface { Wait // Done mark the work execute finished Done() // DoneWithError mark the work execute finished with error info DoneWithError(err error) }
WaitDone support execute the work synchronously and mark the work done
func NewWaitDone ¶
func NewWaitDone() WaitDone
NewWaitDone create an instance of WaitOne to support execute the work synchronously
Click to show internal directories.
Click to hide internal directories.