fake_async library

Classes

FakeAsync
A class that mocks out the passage of time within a Zone.
FakeTimer
An implementation of Timer that's controlled by a FakeAsync.

Functions

fakeAsync<T>(T callback(FakeAsync async), {DateTime? initialTime}) → T
Runs callback in a Zone where all asynchrony is controlled by an instance of FakeAsync.