Replies: 3 comments 11 replies
-
oh. very interesting. |
Beta Was this translation helpful? Give feedback.
9 replies
-
What's the use-case? Most JEE stuff that needs context will never go through the pain of passing it as an extra parameter, which is why they're in thread-locals for decades. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Without any further comment in the PR by tomorrow morning my time I'll go ahead with the merge. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just assembled my work on Mutiny contexts in #776 and I'd be happy to get feedbacks!
Here's a brief overview.
What's a context?
This PR offers subscriber-provided contexts, so all operators involved in a subscription can share some form of implicit data.
A context is a simple key / value, in-memory storage. Data can be queried, added and deleted from a context, as shown in the following snippet:
Where can I see some examples?
You can see the full tests suite at: https://github.com/smallrye/smallrye-mutiny/blob/feature/context-support/implementation/src/test/java/io/smallrye/mutiny/ContextTest.java
Here's a quick snippet that shall (hopefully) be self-explanatory:
Beta Was this translation helpful? Give feedback.
All reactions