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

Various clean-ups and null-safety improvements. #140

Merged
merged 5 commits into from
Nov 6, 2020
Merged

Conversation

lrhn
Copy link
Contributor

@lrhn lrhn commented Oct 1, 2020

No description provided.

@@ -42,7 +42,7 @@ class AsyncCache<T> {
/// The [duration] starts counting after the Future returned by [fetch]
/// completes, or after the Stream returned by [fetchStream] emits a done
/// event.
AsyncCache(this._duration);
AsyncCache(Duration duration) : _duration = duration;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed because [duration] in the dartdoc didn't have a target.

@@ -30,6 +28,7 @@ class SingleSubscriptionTransformer<S, T> extends StreamTransformerBase<S, T> {
controller.addError(error, stackTrace);
}
}, onError: controller.addError, onDone: controller.close);
controller.onCancel = subscription.cancel;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can avoid a lot of late by splitting creation and initialization when you have cyclic dependencies!

@kevmoo
Copy link
Contributor

kevmoo commented Oct 1, 2020

dartfmt and one lint...

@natebosch
Copy link
Contributor

@lrhn do you plan on revisiting this? Do you want me to pick it up and get travis passing?

Make field final to silence lint.
@lrhn
Copy link
Contributor Author

lrhn commented Nov 6, 2020

Think I have made Travis happy now.
(I really need a dashboard to keep track of what I'm doing!)

@natebosch natebosch merged commit 05b9553 into master Nov 6, 2020
@natebosch natebosch deleted the cleanup branch November 6, 2020 17:19
natebosch added a commit that referenced this pull request Jan 29, 2021
This reverts commit 05b9553.

Since this has not been published or rolled through to the SDK or
Flutter we will hold it back to reduce risk.
natebosch added a commit that referenced this pull request Jan 29, 2021
This reverts commit 05b9553.

Since this has not been published or rolled through to the SDK or
Flutter we will hold it back to reduce risk.
mosuem pushed a commit to dart-lang/core that referenced this pull request Oct 14, 2024
mosuem pushed a commit to dart-lang/core that referenced this pull request Oct 14, 2024
…/async#140)" (dart-archive/async#152)

This reverts commit 43e4a96.

Since this has not been published or rolled through to the SDK or
Flutter we will hold it back to reduce risk.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

4 participants