Get the latest tech news

Show HN: Coros – A Modern C++ Library for Task Parallelism


An easy-to-use and fast library for task-based parallelism, utilizing coroutines. - mtmucha/coros

This requirement ensures that return values can be constructed from an r-value reference, utilizing either a move or a copy constructor. Best practice is passing values and references through coroutine parameters rather than captures to ensure safety and avoid unexpected behavior. All these functions are constrained to only accept r-value references because the tasks are enqueued and not awaited, which means their coros::Task<T> objects are temporary(destroyed when finished) and cannot be used to retrieve values.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of COROS

COROS

Photo of task parallelism

task parallelism

Photo of modern c++ library

modern c++ library

Related news:

News photo

Massive COROS update fixes its new bike computer, ends support for one of its best watches

News photo

Coros' first bike computer makes Garmin Edge look short-lived and expensive

News photo

Coros vs. Garmin vs. Polar fitness test: How the new Vertix 2S compares to the Forerunner 965 and Vantage V3