Documentation
¶
Overview ¶
Package wait provides small concurrency helpers shared across subsystems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SleepOrStop ¶
SleepOrStop waits for d to elapse or until stop is closed, whichever happens first. It returns true if the full duration elapsed, or false if stop fired (i.e. a stop/shutdown was requested) before then. The timer is always released, so it is safe to call in a tight reconnect loop.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.