Comments (4)
Well, you gets the failure(sending more item than the capacity), so no need to cancel. It does not hang, it is just 'done'.
When there is no failure, cancel would stop everything. You can also use .select().first(x) to cancel after x items.
from smallrye-mutiny.
May be we have a different meaning of "hang". What I mean is that the program does not end: the VM is not terminated.
If I issue a jstack
against that running process, I see threads that are blocking the VM to exit. Unfortunately, their names (pool-2-thread-1
) do not tell me what code does that for me to dig deeper.
Do I make sense now?
from smallrye-mutiny.
This is because the default executor is a Executors.newCachedThreadPool()
and is used by emitOn
and is still active and prevents a JVM shutdown.
If you used another executor, or if you wait long enough it will start to prune internal threads and your JVM will exit.
from smallrye-mutiny.
Moving to a discussion, this is not an issue.
from smallrye-mutiny.
Related Issues (20)
- Proposal to Integrate Fault Tolerance Patterns into SmallRye Mutiny HOT 4
- Chain of onFailure().withBackOff() may break CompletableFuture invocation HOT 6
- Raise the baseline to Java 17
- expireIn/At backoff starts with 2^1 factor instead of 2^0 HOT 1
- Document the broadcast operator
- UniAwait may not pass null contexts
- Race-condition in the new concatMap operator
- Compilation fails with updated `maven-compiler-plugin` HOT 2
- Memory Leak when using Multi Replay HOT 6
- Race condition on UniCallbackSubscriber cancellation
- NullPointerException in MultiConcatMapOp HOT 4
- Cancellelation hangs when awaiting and still calls the uni when subscribing HOT 2
- Allow combining backoff retries with an until predicate
- Multiple onTermination signals when retrying with backoffs
- Memory Leak when using toHotStream HOT 4
- Keep sub-page when navigating to latest version of a webpage HOT 1
- Propose a reduced jar with shaded dependencies
- Mutiny is creating zombie thread on delayIt() which are not doing anything after certain time HOT 5
- Operator for a generalised gathering transformation
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 smallrye-mutiny.