× 警告!旧版文档已经暂停维护,请查看新版文档。点击前往新版文档

Coroutine\Channel->$errCode

Coroutine\Channel->$errCode

  • 默认成功 0 (SWOOLE_CHANNEL_OK)
  • 超时 pop失败时(超时)会置为-1 (SWOOLE_CHANNEL_TIMEOUT)
  • channel已关闭,继续操作channel,设置错误码 -2 ( SWOOLE_CHANNEL_CLOSED)