Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrainChannel ¶
DrainChannel attempts to receive from the given channel, blocking, until it is empty. It returns an error if the channel is not closed by the time it's empty. TODO_CONSIDERATION: this function could easily take a timeout parameter and add a case which returns an error if the timeout is exceeded. This would prevent the case where the channel never stops receiving from looping indefinitely.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.