Skip to content

Should FakeAsync also have a flushEvents or does flushMicrotasks covers them all? #2572

@feinstein

Description

@feinstein

The docs for flushMicrotasks says that it Runs all pending microtasks, but as far as I know the Dart Event Loop has 2 queues: Microtasks and Events. FakeAsync can flush timers and microtasks, but what about the events queue? Should the docs add that they are flushed too? Or do we need another method to flush events?

I have used .flushMicrotasks with no issues, so I thought it also flushed Events, but now I have a bug that's making me question this (and my own sanity)... but regardless, having this documented would be nice.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions