Comments (3)
Do it inside a Task and use Task.yield to get the result. Also note flow is probably a cannon shot if all you want is to parse a CSV file in parallel. Take a look at Task.async_stream too.
from flow.
@KamilLelonek if the work is in parallel but per row, then async_stream will still be enough. You just do the whole procssing per row inside the async_stream task. However, if you need to shuffle, partiion or group the rows in any way, then yes, Flow is the way to go.
from flow.
Actually, after parsing CSV I'm doing A LOT of other work in parallel. Should I parse the entire file firstly and only then leverage Flow
?
from flow.
Related Issues (20)
- Flow outlives a Task that starts it HOT 1
- Unhelpful Error Message HOT 3
- Exceptions in Flow killing parent Oban process HOT 4
- Session windows are mentioned as supported but are not HOT 1
- Need help understanding back pressure HOT 1
- :no_proc errors when GenStage finishes quickly HOT 7
- Combining `Flow.shuffle/2` with `Flow.start_link/2` raises an error about unknown option `:dispatcher` HOT 4
- Access previous windows HOT 2
- Flow.from_specs and failed starts HOT 4
- Carve events into windows by count and timeout HOT 1
- Clarify :full_outer v :outer joins HOT 1
- GenServer.start/3 Dialyzer Issues in Flow.Coordinator HOT 2
- bypassing to next partition (eliminating passthrough traffic) HOT 4
- error logged, but works? HOT 4
- Spec Incorrect in Flow.into_specs/3 HOT 1
- from_stages - noproc errors when GenStage producer finishes early HOT 4
- segmentation fault HOT 6
- noproc errors - connecting finite GenStage to Flow.partition HOT 2
- Possible Issue With Flow.through_specs/3 HOT 2
- Flow.map_batch/2 fails with CaseClauseError HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flow.