poll() / mysqli_poll() 函数用于轮询连接。
$mysqli -> poll(
read, error, reject, seconds, microseconds)
mysqli_poll(
read, error, reject, seconds, microseconds)
Parameter | Description |
---|---|
read | Required. Specifies a list of connections to check for outstanding results that can be read |
error | Required. Specifies a list of connections on which an error occurred, like query failure or lost connection |
reject | Required. Specifies a list of connections rejected because no asynchronous query has been run on for which the function could poll results |
seconds | Required. Specifies the maximum number of seconds to wait |
microseconds | Optional. Specifies the maximum number of microseconds to wait. Default is 0 |
返回值: | 成功时的就绪连接数。失败时为 FALSE |
---|---|
PHP 版本: | 5.3+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!