flatten 20260225

This commit is contained in:
Timothy Prepscius
2026-02-25 12:39:24 -05:00
commit fa54be052a
315 changed files with 49791 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
// TJP COPYRIGHT HEADER
//
// Timer.h
// algorithm
//
// Created by Timothy Prepscius on 1/19/18.
// Copyright © 2018 Timothy Prepscius. All rights reserved.
//
#include "Scheduler.hpp"
namespace timprepscius::core::time {
Scheduler::~Scheduler ()
{
}
Future<void> Scheduler::after(Time period)
{
Promise<void> v;
auto event = schedule(
period,
false,
[v]() {
auto r = v;
r.set_value();
}
);
return v.get_future().then([event](auto &&f) { return f.get(); });
}
} // namespace