LeviLamina
Loading...
Searching...
No Matches
IBackgroundTaskOwner.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/IAsyncResult.h"
7#include "mc/deps/core/threading/TaskGroupState.h"
8#include "mc/platform/brstd/move_only_function.h"
9
10// auto generated forward declare list
11// clang-format off
13class TaskResult;
14struct TaskStartInfo;
15// clang-format on
16
18public:
19 // virtual functions
20 // NOLINTBEGIN
21 // vIndex: 0
22 virtual ~IBackgroundTaskOwner() = default;
23
24 // vIndex: 1
25 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>> queue_DEPRECATED(
26 ::TaskStartInfo const&,
28 ::std::function<void()>&&
29 ) = 0;
30
31 // vIndex: 2
32 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>>
33 queueSync_DEPRECATED(::TaskStartInfo const&, ::brstd::move_only_function<::TaskResult()>&&) = 0;
34
35 // vIndex: 3
36 virtual void taskRegister(::std::shared_ptr<::BackgroundTaskBase>) = 0;
37
38 // vIndex: 4
39 virtual void requeueTask(::std::shared_ptr<::BackgroundTaskBase>, bool) = 0;
40
41 // vIndex: 5
42 virtual ::TaskGroupState getState() const = 0;
43
44 // vIndex: 6
45 virtual void processCoroutines() = 0;
46
47 // vIndex: 7
48 virtual void taskComplete(::gsl::not_null<::BackgroundTaskBase*>) = 0;
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54
55 // NOLINTEND
56};
Definition BackgroundTaskBase.h:15
Definition IBackgroundTaskOwner.h:17
Definition TaskResult.h:5
Definition move_only_function.h:9
Definition TaskStartInfo.h:5