Adding noexcpt to isCancelled (#2197)

* Adding noexcpt to isCancelled

* revert cl
This commit is contained in:
Victor Vazquez 2021-05-05 15:01:01 -07:00 committed by GitHub
parent 0490d69e02
commit aa3b6f18f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,7 +200,7 @@ namespace Azure { namespace Core {
* @brief Check if the context is cancelled.
* @return `true` if this context is cancelled, `false` otherwise.
*/
bool IsCancelled() const { return GetDeadline() < std::chrono::system_clock::now(); }
bool IsCancelled() const noexcept { return GetDeadline() < std::chrono::system_clock::now(); }
/**
* @brief Throw an exception if the context was cancelled.