Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
task.h File Reference

异步任务框架,提供 Task 和 SharedTask 两类异步任务工具。 More...

#include <functional>
#include <future>
#include <memory>
#include <thread>
#include "../core/sfinae.h"
#include "./event.h"

Go to the source code of this file.

Classes

class  console::Task< T >
 异步任务类,用于在后台线程中执行任务。 More...
class  console::SharedTask< T >
 异步任务类,用于在后台线程中执行任务 (共享版)。 More...

Namespaces

namespace  console
 本库所有组件所在的顶层命名空间。

Detailed Description

异步任务框架,提供 Task 和 SharedTask 两类异步任务工具。

Author
MrXie1109
Date
2026