|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Minimal example for Aleph-w's experimental async bridge. More...
Go to the source code of this file.
Functions | |
| int | main () |
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.
| int main | ( | ) |
Definition at line 116 of file experimental_async_example.cc.
References Aleph::divide_and_conquer_partition_dp().