コード例 #1
0
ファイル: Channels.php プロジェクト: liuggio/spawn
 /**
  * Free a channel.
  *
  * @param Channel $channel
  */
 public function setEmpty(Channel $channel)
 {
     $this->channels[$channel->getId()] = $channel->setIsWaiting();
 }
コード例 #2
0
ファイル: ProcessEnvironment.php プロジェクト: liuggio/spawn
 /**
  * @return string
  */
 public function getReadableChannel()
 {
     return 'test_' . (int) $this->channel->getId();
 }