Comments (9)
That's because the contents are too small. So everything is sent on a single batch, to a single producer/consumer, that can count it correctly. Can you please send a PR that adds this clarification to the docs? Thank you!
from flow.
Of course, do you think there is any way to show the advantage of using 'partition' in a simpler piece of code?
from flow.
from flow.
Unfortunately, you can only specify the max_demand when you use partition, so I just added a paragraph in the doc to explain that this can happen.
from flow.
@Arkham you can specify max_demand on from_enumerable
. :) Can you please give it a try?
from flow.
I gave it a quick try locally and I got this by passing max_demand: 1
to from_enumerable:
[{"are", 1}, {"red\n", 1}, {"roses", 1}, {"are", 1}, {"blue\n", 1}, {"violets", 1}]
from flow.
Aha, that's really cool, I can add that to the doc. Should I remove the comment then?
from flow.
Closing this in favor of the PR anyway. :)
from flow.
I think you can keep your commend and show an example with max_demand: 1
to illustrate how you can reproduce it. :)
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
- Race condition when a producer is closing too soon HOT 3
- 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.