mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-29 18:10:34 +00:00
Co-authored-by: Marek Foss <marek.foss@neti-soft.com> Co-authored-by: Alex Kremer <akremer@ripple.com>
21 lines
322 B
C++
21 lines
322 B
C++
#pragma once
|
|
|
|
namespace xrpl::node_store {
|
|
|
|
/**
|
|
* Derived classes perform scheduled tasks.
|
|
*/
|
|
struct Task
|
|
{
|
|
virtual ~Task() = default;
|
|
|
|
/**
|
|
* Performs the task.
|
|
* The call may take place on a foreign thread.
|
|
*/
|
|
virtual void
|
|
performScheduledTask() = 0;
|
|
};
|
|
|
|
} // namespace xrpl::node_store
|