Skip to content

Bloc doesn't await for async side effects completion before closing #8

@pierremrtn

Description

@pierremrtn

Issue raised from Tango-Tango fork:

Since StateMachine handles onEnter/onExit/onChange methods
in the [Bloc.onChange] handler, these side effects cannot be awaited.

Due to this, the bloc has no understanding of when these effects may be
completed, and they aren't treated like normal event handlers
that are run to completion before a bloc is closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions