outputchannel.scala
来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 40 行
SCALA
40 行
/* __ *\** ________ ___ / / ___ Scala API **** / __/ __// _ | / / / _ | (c) 2005-2007, LAMP/EPFL **** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **** /____/\___/_/ |_/____/_/ | | **** |/ **\* */// $Id: OutputChannel.scala 12920 2007-09-21 18:17:47Z phaller $package scala.actors/** * The <code>OutputChannel</code> trait provides a common interface * for all channels to which values can be sent. * * @version 0.9.9 * @author Philipp Haller */trait OutputChannel[-Msg] { /** * Sends <code>msg</code> to this * <code>OutputChannel</code> (asynchronous). */ def !(msg: Msg): Unit /** * Forwards <code>msg</code> to this * <code>OutputChannel</code> (asynchronous). */ def forward(msg: Msg): Unit /** * Returns the <code>Actor</code> that is * receiving from this <code>OutputChannel</code>. */ def receiver: Actor}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?