Similarly, the ChannelOutput interface consists of a single method called write(Object o).
类似地,ChannelOutput 接口也只有一个方法,叫作 write(Object o)。
BlackHoleChannel implements the ChannelOutput interface and contains an empty write method.
BlackHoleChannel实现ChannelOut put接口,包含一个空的write方法。
A process that calls this method on an object implementing the ChannelOutput interface will block until the object is accepted by the channel.
如果进程调用一个实现ChannelOut put接口的对象的这个方法,进程也会阻塞,直到通道接受对象。
应用推荐