Is it possible some way to get a flow (possibly Sh...
# ktor
e
Is it possible some way to get a flow (possibly SharedFlow) of all the updates to the
subject
in a ktor
Pipeline
? 🤔 Seems like it will be a good way to monitor a pipeline run
a
Do you mean to get all updates on the subject made by each interceptor?
👍 1
e
Yes, exactly. Sorry, no not really. Just updates to the subject field will be fine
As if the
var subject
of PipelineContext was
Delegates.observable
My use case is i want to create a custom pipeline, but in my case, while
subject
instance is sealed immutable heirarchy, every interceptor can proceed with a new value, so I want to get a history of the changes to the subject as the pipeline proceeds or executes
a
Unfortunately, that's not possible without a modification of the
PipelineContext
implementation.
e
Yeah guessed as much. Thanks for confirming 💚