idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
Task Component

Task lifecycle management for ESP32. More...

Namespaces

namespace  idfxx
 

Classes

class  idfxx::task
 Task lifecycle management. More...
 

Functions

const task::error_categoryidfxx::task_category () noexcept
 Returns a reference to the task error category singleton.
 
std::error_code idfxx::make_error_code (task::errc e) noexcept
 Creates an error code from an idfxx::task::errc value.
 

Detailed Description

Task lifecycle management for ESP32.

Provides task lifecycle management with support for both owned and fire-and-forget tasks.

Depends on Core Utilities for error handling.

Function Documentation

◆ make_error_code()

std::error_code idfxx::make_error_code ( task::errc  e)
inlinenoexcept

Creates an error code from an idfxx::task::errc value.

Parameters
eThe error code enumerator.
Returns
The corresponding std::error_code.

Definition at line 785 of file task.hpp.

References idfxx::task_category().

◆ task_category()

const task::error_category & idfxx::task_category ( )
noexcept

Returns a reference to the task error category singleton.

Returns
Reference to the singleton task::error_category instance.

Referenced by idfxx::make_error_code().