Commit 82be0f6e authored by Harris Hancock's avatar Harris Hancock

Make Canceler::isEmpty() const

parent 6ecd99b2
......@@ -546,7 +546,7 @@ public:
// Releases previously-wrapped promises, so that they will not be canceled regardless of what
// happens to this Canceler.
bool isEmpty() { return list == nullptr; }
bool isEmpty() const { return list == nullptr; }
// Indicates if any previously-wrapped promises are still executing. (If this returns false, then
// cancel() would be a no-op.)
......
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