Commit c3543916 authored by Shai Szulanski's avatar Shai Szulanski Committed by Facebook Github Bot

Add cancellation support to coroutine interface

Reviewed By: andriigrynenko

Differential Revision: D17749079

fbshipit-source-id: 44c2c6dd55fe5be033bc4a5139941b5e3a004a67
parent 1cb1df68
...@@ -28,6 +28,11 @@ namespace folly { ...@@ -28,6 +28,11 @@ namespace folly {
class CancellationCallback; class CancellationCallback;
class CancellationSource; class CancellationSource;
struct OperationCancelled : public std::exception {
const char* what() const noexcept override {
return "coroutine operation cancelled";
}
};
namespace detail { namespace detail {
class CancellationState; class CancellationState;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment