Skip to content
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
7 changes: 3 additions & 4 deletions packages/common/lib/src/async/async_single_queue.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ final class _Pending<TTaskReturn> {
_Pending(this._fn, this._completer);

Future<TaskResult<TTaskReturn>> execute() {
this
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newer linter version doesn't like this.

._fn()
_fn()
.then((value) => _completer.complete(TaskComplete(value)))
.catchError((err) => _completer.complete(TaskError(err)));
return this._completer.future;
return _completer.future;
}

void shed() {
this._completer.complete(TaskShed());
_completer.complete(TaskShed());
}
}

Expand Down