Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResultSentTwice = fmt.Errorf("tried to send result twice")
Functions ¶
func Get ¶
Get tries to read a message from a channel, blocking until it succeeds or the context gets cancelled or expires.
Returns a pointer to the message if it was received successfuly (nil otherwise), a bool equal to true if the channel isn't closed, and ctx.Err() if the context expired/got cancelled.
Types ¶
type RequestChannel ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.