Replies: 6 comments 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 Do I make sense now? |
Beta Was this translation helpful? Give feedback.
-
This is because the default executor is a If you used another executor, or if you wait long enough it will start to prune internal threads and your JVM will exit. |
Beta Was this translation helpful? Give feedback.
-
Moving to a discussion, this is not an issue. |
Beta Was this translation helpful? Give feedback.
-
This is exactly what I thought too, but:
still does not end the JVM. |
Beta Was this translation helpful? Give feedback.
-
@jponge ping you here in case you missed my last comment. thank you. |
Beta Was this translation helpful? Give feedback.
-
by far not an experienced mutiny user here, so my question is rather basic. Having some code like this (taken from https://quarkus.io/blog/mutiny-back-pressure/):
and
I indeed get a "Got Failure" message, but then the program "hangs". How do I cancel/stop you name it, that created ticker and free all of its resources. The above code with :
Cancellable::cancel
does not work. May be its a bug? May be my version matters?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions