-
Notifications
You must be signed in to change notification settings - Fork 16
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
Zone.strong #9
Conversation
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 things
- This won't be a . release. It'll be dev.1.0 – I think
- Don't need the infinity thing any more. Just <2.0.0 will work...
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...also, update changelog!
done. |
CHANGELOG.md
Outdated
@@ -1,7 +1,6 @@ | |||
## 1.3.1 |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.3.2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
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)); |
There was a problem hiding this comment.
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?
There was a problem hiding this 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.
The
dart:async
zone API is in the process of becoming strong-mode clean.This patch fixes a breakage introduced by this change.