https://github.com/nh2/conduit-concurrent-map
Concurrent, order-preserving mapping Conduit for Haskell
https://github.com/nh2/conduit-concurrent-map
Last synced: about 1 month ago
JSON representation
Concurrent, order-preserving mapping Conduit for Haskell
- Host: GitHub
- URL: https://github.com/nh2/conduit-concurrent-map
- Owner: nh2
- Created: 2018-08-31T20:32:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-05-04T16:14:07.000Z (about 1 month ago)
- Last Synced: 2025-05-04T17:26:13.182Z (about 1 month ago)
- Language: Haskell
- Size: 22.5 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
conduit-concurrent-map
======================Provides a `Conduit` that maps a function concurrently over incoming elements, maintaining input order.
Note that this is _not_ about running different parts of a conduit pipeline concurrently (see [`stm-conduit`](http://hackage.haskell.org/package/stm-conduit-4.0.0) for something that does that).
Instead, it it provides one pipeline element that processes elements concurrently internally.## Comparison to other libraries
* [`conduit-algorithms`](https://hackage.haskell.org/package/conduit-algorithms)
* `Data.Conduit.Algorithms.Async`'s `asyncMapC` is similar but only does pure maps (`a -> b`) instead of monadic maps (`a -> m b`)
* `Data.Conduit.Algorithms.Async`'s `asyncMapC` [is not async exception safe](https://github.com/luispedro/conduit-algorithms/issues/9)
* [`stm-conduit`](http://hackage.haskell.org/package/stm-conduit)
* Completely different goal: Connects multiple conduit components so that they run concurrently.