mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
5a85067b49
This reverts commit a362c37c8b
.
The commit tried to add an unused function that continued our tradition
of not properly waiting for things but instead flooding event loop with
condition checks that delay firing of the event. I think this is a
fundamentally flawed approach. See also checks for
`fire_when_not_visible` in LibCore/EventLoopImplementationUnix.cpp.
21 lines
398 B
C++
21 lines
398 B
C++
/*
|
|
* Copyright (c) 2018-2020, sin-ack <sin-ack@protonmail.com>
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibCore/EventReceiver.h>
|
|
|
|
namespace Core {
|
|
|
|
class DeferredInvocationContext final : public Core::EventReceiver {
|
|
C_OBJECT(DeferredInvocationContext)
|
|
private:
|
|
DeferredInvocationContext() = default;
|
|
};
|
|
|
|
}
|