Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
experimental_async_example.cc File Reference

Minimal example for Aleph-w's experimental async bridge. More...

#include <experimental_async.H>
#include <thread_pool.H>
#include <iostream>
#include <string>
Include dependency graph for experimental_async_example.cc:

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

Minimal example for Aleph-w's experimental async bridge.

This program demonstrates the opt-in coroutine-friendly wrapper in experimental_async.H. The bridge is intentionally small: it lets callers schedule a callable on a ThreadPool, then either block with get() or co_await the resulting operation inside their own coroutine type.

Build with: cmake -S . -B build -DALEPH_ENABLE_EXPERIMENTAL_ASYNC=ON cmake –build build –target experimental_async_example

Usage: ./experimental_async_example

Definition in file experimental_async_example.cc.

Function Documentation

◆ main()

int main ( )