reactor-core icon indicating copy to clipboard operation
reactor-core copied to clipboard

Contextual operators: transformWithWrappers / FunctionalWrappers

Open simonbasle opened this issue 3 years ago • 1 comments

This PR introduces several concepts:

  • a generic FunctionalWrappers interface that defines wrappers for all functional types used by Reactor API
  • a contextual implementation of the above in ContextPropagation
  • an operator that will allow transformation of a sequence with a FunctionalWrappers instance in scope, which enables users to wrap their lambdas inside the scope and get context propagation if available

See tests for an example of using Flux#transformWithWrappers.

simonbasle avatar Aug 10 '22 14:08 simonbasle

Depends-on: #3145

simonbasle avatar Aug 10 '22 14:08 simonbasle

Closing. This work was superseded by proposal (4) from #3149.

chemicL avatar Dec 05 '23 13:12 chemicL