Documentation ¶
Overview ¶
Package draining implements a draining state on contexts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func C ¶
C returns a channel associated with the draining context. The channel is closed when the context is draining. If the context is not set up for draining, return nil (nil channels block forever on receive).
func IsDraining ¶
IsDraining checks whether the context is draining. If the context is not set up for draining, return false.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.