Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

partial_cancel_after::partial_cancel_after - Boost C++ 函数库
PrevUpHomeNext

构造函数,用于指定超时时长和取消类型。

partial_cancel_after(
    const typename Clock::duration & timeout,
    cancellation_type_t cancel_type = cancellation_type::terminal);

PrevUpHomeNext