blob: 27cc023bfb0f21cf2296eada8dc50b9c0fd393fd [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/task/promise/finally_executor.h"
namespace base {
namespace internal {
FinallyExecutorCommon::FinallyExecutorCommon(internal::CallbackBase&& callback)
: callback_(std::move(callback)) {}
FinallyExecutorCommon::~FinallyExecutorCommon() = default;
bool FinallyExecutorCommon::IsCancelled() const {
return callback_.IsCancelled();
}
} // namespace internal
} // namespace base