feng-y edited a comment on issue #1243: URL: https://github.com/apache/incubator-brpc/issues/1243#issuecomment-693761761
> 启动一个bthread sleep超时的时间后 brpc::StartCancel就可以,并不复杂。 wait 和 sleep 不是一个语义,和复杂没有关系,哪里需要sleep 多长时间呢,假设是5ms, 可能这个请求在1ms 后就返回了,需要的是异步通知机制, 我看看用 bthread::CountdownEvent来实现看看 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
