Sender
Object Hierarchy:
Description:
[
Version ( since =
"0.3.0-alpha" ) ]
public interface Sender<
G> :
ChannelBase
All known sub-interfaces:
Content:
Methods:
- public abstract Result<void*> send (owned G data)
Sends a value into the channel. This method blocks the thread until the
value is sent or the channel is closed.
- public abstract Result<void*> send_until (owned G data, int64 end_time)
Sends a value into the channel. This method blocks the thread until the
value is sent, the channel is closed, or end_time has passed.
- public abstract Result<void*> try_send (owned G data)
Attempts to send a value into the channel. This method doesn't block the
thread and returns immediately, regardless of success.
Inherited Members:
All known members inherited from interface Gpseq.ChannelBase