Revert #3035 which was causing memory growth issue (#3315)

This commit is contained in:
Bart Louwers
2025-03-17 19:00:07 +01:00
committed by GitHub
parent 296ce07394
commit 00956faefb
80 changed files with 294 additions and 348 deletions

View File

@@ -94,14 +94,16 @@ TEST(Actor, DestructionBlocksOnSend) {
void waitForEmpty(const util::SimpleIdentity) override { assert(false); }
void schedule(Task&&) final {
void schedule(std::function<void()>&&) final {
promise.set_value();
future.wait();
std::this_thread::sleep_for(1ms);
waited = true;
}
void schedule(const util::SimpleIdentity, Task&& fn) override final { schedule(std::move(fn)); }
void schedule(const util::SimpleIdentity, std::function<void()>&& fn) override final {
schedule(std::move(fn));
}
mapbox::base::WeakPtr<Scheduler> makeWeakPtr() override { return weakFactory.makeWeakPtr(); }