Skip to content

Suspend functions in aggregates & event processors? #60

@milgner

Description

@milgner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions