x-cubed / event-store-client

JS client library for connecting to Event Store over TCP/IP
The Unlicense
71 stars 24 forks source link

Support for async/await on the onEventAppeared for subscribeToStreamFrom #40

Open mariobittencourt opened 4 years ago

mariobittencourt commented 4 years ago

Hi @x-cubed,

I wonder if you can provide some insight into making sure the each event is processed before moving to the next one.

( async event => { await eventHandler.handle(event); }),

but it seems to ignore that as I see other events being handled before the previous one finished.

mariobittencourt commented 4 years ago

Hi @x-cubed any idea if I should be using a different way to achieve this?

x-cubed commented 4 years ago

I'm not sure, I haven't used this library in a while.