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/deps/core/threading/TaskStartInfoEx.h"
9#include "mc/platform/brstd/move_only_function.h"
10
11// auto generated forward declare list
12// clang-format off
14class TaskResult;
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>>
26 queue(::TaskStartInfoEx<void> const&, ::brstd::move_only_function<::TaskResult()>&&, ::std::function<void()>&&) = 0;
27
28 // vIndex: 2
29 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>>
31
32 // vIndex: 3
33 virtual void taskRegister(::std::shared_ptr<::BackgroundTaskBase>) = 0;
34
35 // vIndex: 4
36 virtual void requeueTask(::std::shared_ptr<::BackgroundTaskBase>, bool) = 0;
37
38 // vIndex: 5
39 virtual ::TaskGroupState getState() const = 0;
40
41 // vIndex: 6
42 virtual void processCoroutines() = 0;
43
44 // vIndex: 7
45 virtual void taskComplete(::gsl::not_null<::BackgroundTaskBase*>) = 0;
46 // NOLINTEND
47
48public:
49 // destructor thunk
50 // NOLINTBEGIN
51
52 // NOLINTEND
53
54public:
55 // virtual function thunks
56 // NOLINTBEGIN
57
58 // NOLINTEND
59};
Definition BackgroundTaskBase.h:13
Definition IBackgroundTaskOwner.h:17
Definition TaskResult.h:8
Definition move_only_function.h:9
Definition TaskStartInfoEx.h:8