The type of values that can be sent.
Readonly[toThe well-known symbol Symbol.toStringTag used by Object.prototype.toString().
Returns 'Sender' so that Object.prototype.toString.call(sender) produces '[object Sender]'.
ReadonlycapacityThe maximum number of values that can be buffered.
0 for rendezvous channels, Infinity for unbounded channels.
ReadonlyisReturns true if the channel has been closed.
ReadonlyisReturns true if the channel buffer is empty.
Note: A rendezvous channel (capacity=0) is always empty.
ReadonlyisReturns true if the channel buffer is full.
Note: A rendezvous channel (capacity=0) is always full.
ReadonlylengthThe current number of values in the buffer.
Note: This does not count waiting senders/receivers; it only counts buffered items.
Sends a value into the channel, waiting if necessary.
false immediately.The value to send.
A promise that resolves to true if sent successfully, false if the channel is closed.
Sends a value into the channel with a timeout.
Like send(), but returns false if the operation cannot complete
within the specified timeout.
The value to send.
Timeout in milliseconds.
A promise that resolves to true if sent successfully,
false if timed out, channel is full, or closed.
Attempts to send a value without waiting.
true.true.false.The value to send.
true if sent successfully, false if full or closed.
A sender view of a channel that can only send values.
Created by calling
channel.sender(). Shares state with the parent channel.See
https://doc.rust-lang.org/std/sync/mpmc/struct.Sender.html