I emit an error message and replace the return value with 0, instead (remember: every inline code block returns an object).
我发出错误信息,将返回值替换为0(请记住:每个内联代码块都返回一个对象)。
Ruby calls the code block in braces, passing in a continuation object.
Ruby调用花括号中的代码块,同时传递一个延续对象。
A process that calls this method on an object implementing the ChannelInput interface will block until an object is actually written on the channel by a process at the other end of the channel.
如果进程调用一个实现ChannelInput接口的对象的这个方法,那么进程会阻塞,直到在通道另一端的进程实际向通道写入了一个对象。
应用推荐