LibCore: Stop obsessing about tiny OOMs in Core::Timer

Work towards #20405
This commit is contained in:
Andreas Kling 2024-04-16 20:34:01 +02:00
commit 1cb5385a29
Notes: sideshowbarker 2024-07-16 21:39:23 +09:00
52 changed files with 111 additions and 113 deletions

View file

@ -18,13 +18,13 @@ ViewImplementation::ViewImplementation()
{
m_backing_store_shrink_timer = Core::Timer::create_single_shot(3000, [this] {
resize_backing_stores_if_needed(WindowResizeInProgress::No);
}).release_value_but_fixme_should_propagate_errors();
});
m_repeated_crash_timer = Core::Timer::create_single_shot(1000, [this] {
// Reset the "crashing a lot" counter after 1 second in case we just
// happen to be visiting crashy websites a lot.
this->m_crash_count = 0;
}).release_value_but_fixme_should_propagate_errors();
});
on_request_file = [this](auto const& path, auto request_id) {
auto file = Core::File::open(path, Core::File::OpenMode::Read);