Documentation
¶
Overview ¶
Package send provides functions for non-blocking sending of values to channels.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Drop ¶
Drop attempts to send val to ch. If ch is full, val is discarded instead of blocking. Returns true if val was successfully sent.
func DropCtx ¶
DropCtx attempts to send val to ch with context. If ctx is canceled, val is discarded, otherwise blocks until either ctx is canceled or val is sent. Returns true if val was successfully sent.
func Replace ¶
Replace forces val into ch. If ch is full, discards the oldest values to make space. Returns true if no values were discarded during the operation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.