Skip to content

Rename Shutdown to ShutdownRequest #215

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

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 23, 2020

I have missed this type in my last renaming PR.

@ahoppen ahoppen requested a review from benlangmuir January 23, 2020 01:06
@ahoppen
Copy link
Member Author

ahoppen commented Jan 23, 2020

@swift-ci Please test

public static let method: String = "shutdown"
public typealias Response = VoidResponse

public init() { }
}

@available(*, deprecated, message: "Use ShutdownRequest instead")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can do @available(*, deprecated, renamed: "ShutdownRequest") and it will provide a fixit :-)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, nice improvement. Thanks!

@ahoppen
Copy link
Member Author

ahoppen commented Jan 23, 2020

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 23, 2020

@swift-ci Please test macOS platform

@ahoppen ahoppen merged commit 0097a84 into swiftlang:master Jan 27, 2020
@ahoppen ahoppen deleted the shutdown-request branch January 27, 2020 16:23
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.

2 participants