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

Add async alternative for Application.shutdown #3189

Merged
merged 7 commits into from May 10, 2024
Merged

Add async alternative for Application.shutdown #3189

merged 7 commits into from May 10, 2024

Conversation

0xTim
Copy link
Member

@0xTim 0xTim commented May 10, 2024

These changes are now available in 4.99.0

Adds an async alternative for Application.shutdown() and annotates shutdown() with noasync

@0xTim 0xTim requested a review from gwynne as a code owner May 10, 2024 10:19
@0xTim 0xTim added the semver-minor Contains new API label May 10, 2024
Copy link
Member

@gwynne gwynne left a comment

Choose a reason for hiding this comment

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

Need to update the template with these new APIs.

0xTim and others added 2 commits May 10, 2024 11:21
Co-authored-by: Gwynne Raskind <gwynne@vapor.codes>
@0xTim
Copy link
Member Author

0xTim commented May 10, 2024

Yep that's how I discovered this when updating the template

@0xTim 0xTim merged commit 840d87c into main May 10, 2024
16 checks passed
@0xTim 0xTim deleted the async-shutdown branch May 10, 2024 11:59
self.logger.trace("Application shutdown complete")
}

public func asyncShutdown() async throws {
Copy link
Contributor

@Frizlab Frizlab May 10, 2024

Choose a reason for hiding this comment

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

Why is this throwing? I don’t see anything throwing in the function, and it makes me “eat” the error when running the shutdown in a catch block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor Contains new API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants