Skip to content

Conversation

normanmaurer
Copy link
Member

Motivation:

We can remove a promise allocation in Selector.closeGently if there are still Channels registered and also simplify the code a bit.

Modifications:

Remove creation of promise and just use eventLoop.new*Future(...) when needed.

Result:

Less allocations and cleaner code.

Motivation:

We can remove a promise allocation in Selector.closeGently if there are still Channels registered and also simplify the code a bit.

Modifications:

Remove creation of promise and just use eventLoop.new*Future(...) when needed.

Result:

Less allocations and cleaner code.
@normanmaurer normanmaurer requested review from weissi and Lukasa March 26, 2018 17:28
@normanmaurer
Copy link
Member Author

Just a small improvement I noticed when doing another PR.

Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

LGTM.

@normanmaurer normanmaurer merged commit 774f298 into apple:master Mar 26, 2018
@normanmaurer normanmaurer deleted the selector_close_gently_promise branch March 26, 2018 17:50
@normanmaurer normanmaurer added this to the 1.4.0 milestone Mar 26, 2018
@normanmaurer normanmaurer added the 🔨 semver/patch No public API change. label Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants