Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WaitSwitch ¶
type WaitSwitch struct {
// contains filtered or unexported fields
}
func NewWaitSwitch ¶
func NewWaitSwitch() *WaitSwitch
func (*WaitSwitch) SetBlock ¶
func (w *WaitSwitch) SetBlock()
func (*WaitSwitch) SetUnBlock ¶
func (w *WaitSwitch) SetUnBlock()
func (*WaitSwitch) Wait ¶
func (w *WaitSwitch) Wait(waitTimeout *time.Duration)
Wait waits until condition satisfied. If waitTimeout == nil: waits until: 1, SetUnBlock() called. If waitTimeout != nil: waits until: 1, SetUnBlock() called, or 2, timeout reached.
Click to show internal directories.
Click to hide internal directories.