EventFlow icon indicating copy to clipboard operation
EventFlow copied to clipboard

ReadModelLocator Task support?

Open nicolaj-hartmann opened this issue 1 year ago • 2 comments

Hey Rasmus.

Would we like to make ReadModelLocator support async operations? Since Eventflow is going to support Task as return type for IAmReadModelFor it seems like a natural way to go?

nicolaj-hartmann avatar Nov 19 '24 13:11 nicolaj-hartmann

Seems that it really should. I'll see if its possible to add to v1 without doing any breaking changes 🤞 . If not, then it would have to wait 😢

Thank you for your idea ❤️

rasmus avatar Nov 20 '24 08:11 rasmus

@nicolaj-hartmann it seems it would require to do breaking changes. As an alternative, you can copy paste the implementation of MultipleAggregateReadStoreManager and re-do the part that references the IReadModelLocator to be async.

rasmus avatar Dec 08 '24 20:12 rasmus