/* * Copyright (c) 2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace Web::Platform { class EventLoopPluginSerenity final : public Web::Platform::EventLoopPlugin { public: EventLoopPluginSerenity(); virtual ~EventLoopPluginSerenity() override; virtual void spin_until(Function goal_condition) override; virtual void deferred_invoke(Function) override; virtual NonnullRefPtr create_timer() override; }; }