Documentation ¶
Overview ¶
Package testbarrier implements a barrier for testing asynchronous systems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Barrier ¶
type Barrier struct {
// contains filtered or unexported fields
}
Barrier blocks tests for a limited duration until an event happens.
func (*Barrier) Lift ¶
func (b *Barrier) Lift()
Lift the barrier. Must be called when the event happens.
This method is idempotent and can be called multiple times.
Click to show internal directories.
Click to hide internal directories.