• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bemanproject / net / 17516328292

11 Aug 2025 06:06PM UTC coverage: 3.39% (-0.7%) from 4.082%
17516328292

push

github

web-flow
Merge pull request #34 from bemanproject/taps-initial

Taps initial

0 of 115 new or added lines in 11 files covered. (0.0%)

28 existing lines in 5 files now uncovered.

24 of 708 relevant lines covered (3.39%)

0.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/include/beman/net/detail/task.hpp
1
// include/beman/net/detail/task.hpp                                  -*-C++-*-
2
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3

4
#ifndef INCLUDED_INCLUDE_BEMAN_NET_DETAIL_TASK
5
#define INCLUDED_INCLUDE_BEMAN_NET_DETAIL_TASK
6

7
#include <beman/execution/execution.hpp>
8
#include <beman/execution/task.hpp>
9
#include <beman/net/detail/get_io_handle.hpp>
10
#include <beman/net/detail/get_scope_token.hpp>
11
#include <beman/net/detail/io_context.hpp>
12
#include <beman/net/detail/scope.hpp>
13
#include <system_error>
14

15
// ----------------------------------------------------------------------------
16

17
namespace beman::net::detail {
18
class task_env {
19
  public:
20
    using error_types = beman::execution::completion_signatures<beman::execution::set_error_t(std::error_code)>;
21

NEW
22
    auto query(const beman::net::get_io_handle_t&) const noexcept { return this->_handle; }
×
NEW
23
    auto query(const beman::net::get_scope_token_t&) const noexcept { return this->_token; }
×
24

NEW
25
    task_env(const auto& env) : _handle(beman::net::get_io_handle(env)), _token(beman::net::get_scope_token(env)) {}
×
26
    task_env(task_env&&) = delete;
27

28
  private:
29
    beman::net::io_context::handle _handle;
30
    beman::net::scope::token       _token;
31
};
32

33
template <typename T = void>
34
using task = beman::execution::task<T, task_env>;
35
} // namespace beman::net::detail
36
namespace beman::net {
37
template <typename T = void>
38
using task = beman::net::detail::task<T>;
39
}
40

41
// ----------------------------------------------------------------------------
42

43
#endif
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc