Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Semaphore ¶
type Semaphore struct {
// contains filtered or unexported fields
}
func NewSemaphore ¶
func (*Semaphore) TryAcquire ¶
type TestableClock ¶
type TestableClock struct {
// contains filtered or unexported fields
}
func NewTestableClock ¶
func NewTestableClock(now time.Time) *TestableClock
func (*TestableClock) Add ¶
func (c *TestableClock) Add(d time.Duration)
func (*TestableClock) Now ¶
func (c *TestableClock) Now() time.Time
func (*TestableClock) SetTime ¶
func (c *TestableClock) SetTime(t time.Time)
Click to show internal directories.
Click to hide internal directories.