Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
Loading...
Searching...
No Matches
ForwardAwaiter.h
1
#pragma once
2
3
#include <coroutine>
4
5
namespace
ll::coro {
6
template
<
typename
T>
7
struct
ForwardAwaiter {
8
[[nodiscard]]
constexpr
ForwardAwaiter(T val) : t(std::move(val)) {}
9
10
constexpr
bool
await_ready()
const
noexcept
{
return
true
; }
11
constexpr
void
await_suspend(std::coroutine_handle<>)
const
noexcept
{}
12
constexpr
T await_resume()
noexcept
{
return
std::move(t); }
13
14
T t;
15
};
16
template
<>
17
struct
ForwardAwaiter<void> {
18
constexpr
bool
await_ready()
const
noexcept
{
return
true
; }
19
constexpr
void
await_suspend(std::coroutine_handle<>)
const
noexcept
{}
20
constexpr
void
await_resume()
const
noexcept
{}
21
};
22
}
// namespace ll::coro
src
ll
api
coro
ForwardAwaiter.h
Generated on
for LeviLamina by
1.16.1