Unverified Commit cad2304f authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

Merge pull request #725 from capnproto/harris/make-canceler-is-empty-const

Make Canceler::isEmpty() const
parents 6ecd99b2 82be0f6e
......@@ -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