Chromium Embedded Framework (CEF)
109.0.1+gcd5e37a+chromium-109.0.5414.8
|
ScopedClosureRunner is akin to std::unique_ptr<> for Closures. More...
#include "include/base/cef_callback_helpers.h"
Public Member Functions | |
ScopedClosureRunner () | |
ScopedClosureRunner (OnceClosure closure) | |
ScopedClosureRunner (ScopedClosureRunner &&other) | |
ScopedClosureRunner & | operator= (ScopedClosureRunner &&other) |
~ScopedClosureRunner () | |
operator bool () const | |
void | RunAndReset () |
void | ReplaceClosure (OnceClosure closure) |
OnceClosure | Release () |
ScopedClosureRunner is akin to std::unique_ptr<> for Closures.
It ensures that the Closure is executed no matter how the current scope exits. If you are looking for "ScopedCallback", "CallbackRunner", or "CallbackScoper" this is the class you want.
base::ScopedClosureRunner::ScopedClosureRunner | ( | ) |
|
explicit |
base::ScopedClosureRunner::ScopedClosureRunner | ( | ScopedClosureRunner && | other | ) |
base::ScopedClosureRunner::~ScopedClosureRunner | ( | ) |
|
inlineexplicit |
ScopedClosureRunner& base::ScopedClosureRunner::operator= | ( | ScopedClosureRunner && | other | ) |
OnceClosure base::ScopedClosureRunner::Release | ( | ) |
void base::ScopedClosureRunner::ReplaceClosure | ( | OnceClosure | closure | ) |
void base::ScopedClosureRunner::RunAndReset | ( | ) |