Commit 5160a6b0 authored by Kirk Shoop's avatar Kirk Shoop Committed by Facebook Github Bot

Update Readme.md

fbshipit-source-id: ac613182e9960ebe3213041e8a0fcdbc7a33c0ef
parent ebd46723
......@@ -5,7 +5,7 @@ This library is counterpart to [P1055 - *A Modest Executor Proposal*](http://wg2
*pushmi* is a header-only library that uses git submodules for dependencies (`git clone --recursive`), uses CMake to build, requires compliant C++14 compiler to build and has dependencies on meta and catch2 and some other libraries for testing and examples.
[![godbolt](https://img.shields.io/badge/godbolt-master-brightgreen.svg?style=flat-square)](https://godbolt.org/g/aisvBL)
[![godbolt](https://img.shields.io/badge/godbolt-master-brightgreen.svg?style=flat-square)](https://godbolt.org/g/KbtUAr)
*pushmi* is an implementation for prototyping how Futures, Executors can be defined with shared Concepts. These Concepts can be implemented over and over again to solve different problems and make different tradeoffs. User implementations of the Concepts are first-class citizens due to the attention to composition. Composition also enables each implementation of the Concepts to focus on one concern and then be composed to build more complex solutions.
......@@ -276,7 +276,7 @@ auto tsd1 = time_single_sender<int, std::exception_ptr>{time_single_sender{}};
## put it all together with some algorithms
[![godbolt](https://img.shields.io/badge/godbolt-master-brightgreen.svg?style=flat-square)](https://godbolt.org/g/aisvBL)
[![godbolt](https://img.shields.io/badge/godbolt-master-brightgreen.svg?style=flat-square)](https://godbolt.org/g/KbtUAr)
### Executor
......@@ -304,3 +304,25 @@ just(42) |
via(new_thread) |
blocking_submit([](std::string){});
```
### Many
[![godbolt](https://img.shields.io/badge/godbolt-master-brightgreen.svg?style=flat-square)](https://godbolt.org/g/zW7vPP)
```cpp
auto values = std::array<int, 5>{4, 20, 7, 3, 8};
auto f = op::from(values) |
op::submit([&](int){});
```
### FlowMany
[![godbolt](https://img.shields.io/badge/godbolt-master-brightgreen.svg?style=flat-square)](https://godbolt.org/g/zW7vPP)
```cpp
auto values = std::array<int, 5>{4, 20, 7, 3, 8};
auto f = op::flow_from(values) |
op::for_each([&](int){});
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment