pica/taskmanager/function.cpp

13 lines
244 B
C++
Raw Permalink Normal View History

2024-01-03 01:11:56 +00:00
//SPDX-FileCopyrightText: 2024 Yury Gubich <blue@macaw.me>
//SPDX-License-Identifier: GPL-3.0-or-later
#include "function.h"
TM::Function::Function (const std::function<void()>& fn):
fn(fn)
{}
void TM::Function::execute () {
fn();
}