Comments (6)
I agree this should have been the behavior from the very beginning but unfortunately such change is backwards incompatible and might break existing code.
from parseq.
@jodzga, do you mean there could be code that relies on Tasks.par()
to throw an IllegalArgumentException
in case an empty collection is passed as its argument?
Or on ultimate List<T>
being non-empty?
from parseq.
I can imagine both.
Our current thinking is to create Task.par() with better semantics, deprecate Tasks.par() and point it to Task.par().
from parseq.
Yeah, that should work. Otherwise developers would have to introduce their own sets of utility classes. No big deal, but it's good to have one from the authors :)
from parseq.
I've submitted a PR for this issue last week, which should be merged sometime this week: #113
from parseq.
@jodzga Should be safe to close this issue now. :)
from parseq.
Related Issues (20)
- Use long instead Long in ShallowTraceBuilder to avoid memory over-use for parseq tracing. HOT 2
- Broken link in Wiki regarding parsec-exec HOT 1
- Flaky test in TestExecutionMonitor HOT 2
- Getting the output of side effect HOT 2
- Possible to cancel a running task? HOT 2
- Issue in parallel execution HOT 8
- Introduce `Task.fromTry` to convert `Try` to `Task` with success/failure semantics HOT 5
- runAndWaitException doesn't wait for plan to complete HOT 3
- parseq-lambda-names does not work with Java 11 HOT 1
- linkedin-agent-loader is not compatible with Java 11 HOT 1
- andThen overloading is confusing HOT 4
- Should deprecate(rename)Task.blocking() HOT 2
- Typo in wiki Par vs Seq example code HOT 1
- Base Test Classes are inefficient HOT 1
- GOT a NPE when use TraceUtil.getJsonTrace function HOT 3
- parseq-lambda-names test failed for JDK8.0.322 Zulu
- Bump vulnerable dependency on jackson-mapper-asl (CVE-2019-10172) HOT 5
- Proper logging for `withSafeSideEffect`
- Allow Task.par(Iterable) to fail-fast
- Too many memory occupied when raise exceptions
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 parseq.