Serenity Operating System
at master 21 lines 446 B view raw
1/* 2 * Copyright (c) 2022, Linus Groh <linusg@serenityos.org> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include <AK/Variant.h> 10#include <LibJS/Forward.h> 11#include <LibJS/Heap/GCPtr.h> 12#include <LibJS/SafeFunction.h> 13 14namespace Web::Fetch::Infrastructure { 15 16// FIXME: 'or a parallel queue' 17using TaskDestination = Variant<Empty, JS::NonnullGCPtr<JS::Object>>; 18 19void queue_fetch_task(JS::Object&, JS::SafeFunction<void()>); 20 21}