Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zone.strong #9

Merged
merged 7 commits into from
Sep 19, 2017
Merged

Zone.strong #9

merged 7 commits into from
Sep 19, 2017

Conversation

floitschG
Copy link

The dart:async zone API is in the process of becoming strong-mode clean.
This patch fixes a breakage introduced by this change.

pubspec.yaml Outdated
author: Dart Team <misc@dartlang.org>
description: A class for managing a finite pool of resources.
homepage: https://github.com/dart-lang/pool
dependencies:
async: "^1.4.0"
stack_trace: ">=0.9.2 <2.0.0"
environment:
sdk: ">=1.22.0 <2.0.0"
sdk: ">=2.0.0-dev.0.1 <2.0.0-dev.infinity"
Copy link
Member

Choose a reason for hiding this comment

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

2 things

  1. This won't be a . release. It'll be dev.1.0 – I think
  2. Don't need the infinity thing any more. Just <2.0.0 will work...

Copy link
Member

Choose a reason for hiding this comment

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

...also, update changelog!

pubspec.yaml Outdated
author: Dart Team <misc@dartlang.org>
description: A class for managing a finite pool of resources.
homepage: https://github.com/dart-lang/pool
dependencies:
async: "^1.4.0"
stack_trace: ">=0.9.2 <2.0.0"
environment:
sdk: ">=1.22.0 <2.0.0"
sdk: ">=2.0.0-dev.0.1 <2.0.0-dev.infinity"
Copy link
Member

Choose a reason for hiding this comment

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

...also, update changelog!

@floitschG
Copy link
Author

done.

CHANGELOG.md Outdated
@@ -1,7 +1,6 @@
## 1.3.1
Copy link
Member

Choose a reason for hiding this comment

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

Don't delete the 1.3.1 entry!

Copy link
Author

Choose a reason for hiding this comment

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

done.

pubspec.yaml Outdated
@@ -1,5 +1,5 @@
name: pool
version: 1.3.1
version: 1.3.3
Copy link
Member

Choose a reason for hiding this comment

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

1.3.2?

Copy link
Author

Choose a reason for hiding this comment

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

done.

@floitschG
Copy link
Author

done.

lib/pool.dart Outdated
@@ -183,8 +183,7 @@ class Pool {
_allocatedResources--;
if (_allocatedResources == 0) _closeGroup.close();
} else {
_onReleaseCallbacks.add(
Zone.current.bindCallback(onRelease, runGuarded: false));
_onReleaseCallbacks.add(Zone.current.bindCallback(onRelease));
Copy link
Member

Choose a reason for hiding this comment

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

To be super clear – we will now run these callbacks "guarded" in 1.24?

Copy link
Member

@kevmoo kevmoo left a comment

Choose a reason for hiding this comment

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

Please land this. Happy to publish once you're done.

@keertip keertip merged commit 3731963 into master Sep 19, 2017
@kevmoo kevmoo deleted the zone.strong branch September 19, 2017 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants