LeviLamina
Loading...
Searching...
No Matches
IAsyncResult.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
#include "mc/deps/core/threading/AsyncBase.h"
5
#include "mc/deps/core/threading/IAsyncGetResult.h"
6
7
namespace
Bedrock::Threading {
8
9
template
<
typename
T>
10
class
IAsyncResult
:
public
Bedrock::Threading::AsyncBase
,
public
Bedrock::Threading::IAsyncGetResult
<T> {
11
public
:
12
using
Handle = std::shared_ptr<Bedrock::Threading::IAsyncResult<T>>;
13
using
CompletionHandler = std::function<void(
const
Bedrock::Threading::IAsyncResult<T>
&)>;
14
15
virtual
T addOnComplete(Bedrock::Threading::IAsyncResult<T>::CompletionHandler) = 0;
16
};
17
18
}
// namespace Bedrock::Threading
Bedrock::Threading::AsyncBase
Definition
AsyncBase.h:7
Bedrock::Threading::IAsyncGetResult
Definition
IAsyncGetResult.h:9
Bedrock::Threading::IAsyncResult
Definition
IAsyncResult.h:10
src
mc
deps
core
threading
IAsyncResult.h
Generated on Fri Jun 13 2025 05:04:23 for LeviLamina by
1.12.0