-
Notifications
You must be signed in to change notification settings - Fork 698
Special case EventLoopPromise.succeed() when Value is Void #2311
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
Conversation
Can one of the admins verify this patch? |
10 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
LGTM! Thanks for the contribution |
@swift-server-bot test this please |
1 similar comment
@swift-server-bot test this please |
Thanks @mob-connection for this patch and sorry for the delay! |
Motivation:
To succeed an
EventLoopPromise<Void>
users must pass a void-value to it, e.g.:promise.succeed(())
promise.succeed(Void())
It would be nice if we could spell this as
promise.succeed()
.For issue
Modifications:
func succeed()
forVoid
type viaextension
Result:
Users can use
succeed
withoutVoid
type declaration