Skip to content

Conversation

@patrickfreed
Copy link
Contributor

@patrickfreed patrickfreed commented Feb 12, 2020

SWIFT-717

This PR adds a syncClose method to MongoClient. Right now, it simply ignores any errors encountered while shutting down the thread pool, but once we add logger support, we can log these errors instead. This is the approach vapor takes.

One remaining question I have is whether we want to rename close and syncClose to shutdown and syncShutdown / shutdownSync to more closely match vapor's naming.

@patrickfreed patrickfreed requested a review from kmahar February 12, 2020 21:20
Copy link
Contributor

@kmahar kmahar left a comment

Choose a reason for hiding this comment

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

Code changes look good to me, and the name change sounds like a good idea too. I don't need to re-review after you rename

@patrickfreed patrickfreed merged commit 597197a into master Feb 13, 2020
@patrickfreed patrickfreed deleted the SWIFT-717/sync-close branch February 13, 2020 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants