TracktionEngine
|
Asyncronously call a function. More...
#include <tracktion_AsyncFunctionUtils.h>
Inherits juce::AsyncUpdater.
Public Member Functions | |
AsyncCaller ()=default | |
Creates an empty AsyncCaller. | |
AsyncCaller (std::function< void()> f) | |
Creates an AsyncCaller with a given callback function. | |
~AsyncCaller () override | |
Destructor. | |
void | setFunction (std::function< void()> f) |
Sets the function to call. | |
void | handleAsyncUpdate () override |
Public Attributes | |
std::function< void()> | function |
Asyncronously call a function.
|
default |
Creates an empty AsyncCaller.
tracktion::engine::AsyncCaller::AsyncCaller | ( | std::function< void()> | f | ) |
Creates an AsyncCaller with a given callback function.
References function.
|
override |
Destructor.
void tracktion::engine::AsyncCaller::setFunction | ( | std::function< void()> | f | ) |
Sets the function to call.
References function.
|
override |
.
References function.
std::function<void()> tracktion::engine::AsyncCaller::function |
Referenced by AsyncCaller(), handleAsyncUpdate(), and setFunction().