nxt A small typed raster and terminal UI library for C++.
  1. Files
  2. Namespaces
  3. Classes
  1. Concepts

#include <nxt/signal.hpp>
template <typename T>
nxt::detail::next_awaiter struct

Awaitable returned by signal::next().

Contents

  • Reference
    • Constructors, destructors, conversion operators
    • Public functions
    • Public variables

Constructors, destructors, conversion operators

next_awaiter(std::shared_ptr<signal_state<T>> s, std::stop_token st = {}) explicit noexcept
next_awaiter(const next_awaiter&) deleted
next_awaiter(next_awaiter&& other) noexcept
~next_awaiter()

Public functions

auto await_ready() const →  bool noexcept
auto await_resume() →  std::optional<T> noexcept
void await_suspend(std::coroutine_handle<> h)
auto operator=(const next_awaiter&) →  next_awaiter& deleted
auto operator=(next_awaiter&&) →  next_awaiter& deleted

Public variables

std::shared_ptr<signal_state<T>> state
std::stop_token stop
std::optional<T> value
std::unique_ptr<std::stop_callback<std::function<void()>>> stop_callback
Tab / T to search, Esc to close
…

Search for symbols, directories, files, pages or modules. You can omit any prefix from the symbol or file path; adding a : or / suffix lists all members of given symbol or directory.

Use ↓ / ↑ to navigate through the list, Enter to go. Tab autocompletes common prefix, you can copy a link to the result using ⌘ L while ⌘ M produces a Markdown link.

Sorry, nothing was found.
    GitHub • Report an issue • Doxygen tagfile

    Site generated using Poxy