Documentation ¶
Overview ¶
* * @Author: TheLife * @Date: 2020-3-19 2:01 上午
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
type WaitGroup ¶
type WaitGroup interface { // Register waits returns a chan that waits on the given ID. // The chan will be triggered when Trigger is called with // the same ID. Register(timeout time.Duration, count int, data interface{}, callbackFunc func(data interface{})) (id uint64) // Trigger triggers the waiting chans with the given ID. Trigger(id uint64) IsRegistered(id uint64) bool }
func NewEventGroup ¶
func NewEventGroup() WaitGroup
Click to show internal directories.
Click to hide internal directories.