Shabinder Singh
09/08/2023, 8:59 PMCoroutineExecutor
and StoreFactories in upper levels extend this BaseExecutor
My use case is, I want to do some logic process whenever a BaseMsg is dispatched,
My first thought was to override the dispatch method in BaseExecutor and do processing by having a check in there.
but the dispatch of CoroutineExecutor is not marked as Open.
Is there a better way designed to support this use case or should I open a ticket suggesting marking dispatch as open ?Shabinder Singh
09/08/2023, 10:45 PMArkadii Ivanov
09/09/2023, 8:27 AMdispatch and publish methods just send the entity out of the Executor. You can add your own method in BaseExecutor , e.g. handleMessage and use it in descendants. This would make it explicit and also allow descendants to dispatch messages without processing in the parent if needed.Shabinder Singh
09/09/2023, 6:34 PMArkadii Ivanov
09/09/2023, 8:10 PMdispatch method open, then it won't be possible to add a default argument without breaking the source compatibility. But if you believe this change would significantly improve your experience (even though you can define your own method in the base class), then I think we can make those methods open. Plus similar changes in ReaktiveExecutor.