| RMVL 2.4.0 Robotic Manipulation and Vision Library

载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | 所有成员列表
rm::async::Task< Tp > 模板类 参考final
数据 IO 与通信模块

保有 rm::async::Promise 的异步协程任务 更多...

`#include <rmvl/io/async.hpp>`

类 rm::async::Task< Tp > 继承关系图:
rm::async::Task< Tp > 的协作图:

## Public 类型
using | value_type = Tp
using | promise_type = Promise<Tp>
using | handle_t = std::coroutine_handle<promise_type>

## Public 成员函数
| Task (handle_t h)
| Task (const Task &)=delete
Task & | operator= (const Task &)=delete
| Task (Task &&other) noexcept
Task & | operator= (Task &&other) noexcept=default
TaskAwaiter< Tp > | operator co_await () noexcept
| ~Task ()
std::coroutine_handle | handle () const noexcept

## 详细描述

template<typename Tp = void>
class rm::async::Task< Tp >

保有 rm::async::Promise 的异步协程任务

## 成员类型定义说明

## ◆ handle_t

template<typename Tp = void>

using rm::async::Task< Tp >::handle_t = std::coroutine_handle<promise_type>

## ◆ promise_type

template<typename Tp = void>

using rm::async::Task< Tp >::promise_type = Promise<Tp>

## ◆ value_type

template<typename Tp = void>

using rm::async::Task< Tp >::value_type = Tp

## 构造及析构函数说明

## ◆ Task() [1/3]

template<typename Tp = void>

rm::async::Task< Tp >::Task | ( | handle_t | h | ) |
| inline

## ◆ Task() [2/3]

template<typename Tp = void>

rm::async::Task< Tp >::Task | ( | const Task< Tp > & |  | ) |
| delete

函数调用图:

## ◆ Task() [3/3]

template<typename Tp = void>

rm::async::Task< Tp >::Task | ( | Task< Tp > && | other | ) |
| inline noexcept

函数调用图:

## ◆ ~Task()

template<typename Tp = void>

rm::async::Task< Tp >::~Task | ( |  | ) |
| inline

## 成员函数说明

## ◆ handle()

template<typename Tp = void>

std::coroutine_handle rm::async::Task< Tp >::handle | ( |  | ) | const
| inline noexcept

## ◆ operator co_await()

template<typename Tp = void>

TaskAwaiter< Tp > rm::async::Task< Tp >::operator co_await | ( |  | ) |
| inline noexcept

## ◆ operator=() [1/2]

template<typename Tp = void>

Task & rm::async::Task< Tp >::operator= | ( | const Task< Tp > & |  | ) |
| delete

函数调用图:

## ◆ operator=() [2/2]

template<typename Tp = void>

Task & rm::async::Task< Tp >::operator= | ( | Task< Tp > && | other | ) |
| default noexcept

函数调用图: