Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Updated example on Readme.md #39

Merged
merged 1 commit into from
Nov 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ void main() {
fakeAsync((async) {
// All asynchronous features that rely on timing are automatically
// controlled by [fakeAsync].
expect(new Completer().future.timeout(new Duration(seconds: 5)),
throwsA(new isInstanceOf<TimeoutException>()));
expect(Completer().future.timeout(Duration(seconds: 5)),
throwsA(isA<TimeoutException>()));

// This will cause the timeout above to fire immediately, without waiting
// 5 seconds of real time.
async.elapse(new Duration(seconds: 5));
async.elapse(Duration(seconds: 5));
});
});
}
Expand Down