Skip to content

Commit

Permalink
AsyncCaller: Added a constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio committed Jun 7, 2023
1 parent 4d370da commit 8f46d18
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ namespace tracktion { inline namespace engine
*/
struct AsyncCaller : public juce::AsyncUpdater
{
/** Creates an empty AsyncFunctionCaller. */
/** Creates an empty AsyncCaller. */
AsyncCaller() = default;

/** Creates an AsyncCaller with a given callback function. */
AsyncCaller (std::function<void()> f)
{
function = std::move (f);
}

/** Destructor. */
~AsyncCaller() override
{
Expand Down

0 comments on commit 8f46d18

Please sign in to comment.