最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

C++ coroutines: folly::coro::timeout vs folly::timeoutNoDiscard - Stack Overflow

programmeradmin3浏览0评论

I'm trying to understand the difference between folly::coro::timeout vs folly::corotimeoutNoDiscard

I'm looking at the docs here: .h#L51

The docs are the same for both except for this line

The returned result is always that of the operation. In other words the result is never discarded, in contrast with timeout.

I don't understand what this means. Is it implying that if I use timeout API, the result may not be the operation result if it succeed within the timeout?

Would appreciate an example usage to understand the difference.

发布评论

评论列表(0)

  1. 暂无评论