Coroutine\Client->recv

recv方法用于从服务器端接收数据。底层会自动yield,等待数据接收完成后自动切换到当前协程。

function Coroutine\Client->recv(float $timeout = -1) : string;

超时设置