// SPDX-License-Identifier: BSD-2-Clause // author: Max Kellermann #pragma once #include class EventLoop; /** * Call the given function in the context of the #EventLoop, and wait * for it to finish. * * Exceptions thrown by the given function will be rethrown. */ void BlockingCall(EventLoop &loop, std::function &&f);