Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyClosed = errors.New("watchers: already closed")
View Source
var ErrIllegalState = errors.New("watchers: illegal state")
View Source
var ErrMaxWaitessLimitExceeded = errors.New("watchers: max waiting limit exceeded")
Functions ¶
This section is empty.
Types ¶
type WatchersHub ¶ added in v1.0.0
type WatchersHub struct {
// contains filtered or unexported fields
}
func New ¶
func New(doneUpto uint64, maxWaiting int) *WatchersHub
func (*WatchersHub) Close ¶ added in v1.0.0
func (w *WatchersHub) Close() error
func (*WatchersHub) DoneUpto ¶ added in v1.0.0
func (w *WatchersHub) DoneUpto(t uint64) error
func (*WatchersHub) RecedeTo ¶
func (w *WatchersHub) RecedeTo(t uint64) error
Click to show internal directories.
Click to hide internal directories.