Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspend functions in aggregates & event processors? #60

Open
milgner opened this issue Sep 26, 2023 · 0 comments
Open

Suspend functions in aggregates & event processors? #60

milgner opened this issue Sep 26, 2023 · 0 comments

Comments

@milgner
Copy link

milgner commented Sep 26, 2023

I was surprised that neither functions for aggregate creation/updates nor event processor updates are marked as suspend.

I assume that this was a conscious decision - do you have some background about it? Especially interaction with databases to update aggregates is bound to use suspending I/O. For the time being, we're thinking about explicitly launching jobs on Dispatchers.IO and manually waiting for them to complete - but using suspend functions would probably be more concise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant