Skip to content

Conversation

mob-connection
Copy link
Contributor

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:

  • add func succeed() for Void type via extension

Result:

Users can use succeed without Void type declaration

@swift-server-bot
Copy link

Can one of the admins verify this patch?

10 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Nov 11, 2022
@FranzBusch
Copy link
Member

LGTM! Thanks for the contribution

@glbrntt glbrntt linked an issue Nov 11, 2022 that may be closed by this pull request
@dnadoba
Copy link
Member

dnadoba commented Jan 19, 2023

@swift-server-bot test this please

1 similar comment
@dnadoba
Copy link
Member

dnadoba commented Jan 19, 2023

@swift-server-bot test this please

@dnadoba dnadoba enabled auto-merge (squash) January 19, 2023 16:38
@dnadoba dnadoba merged commit 555f1db into apple:main Jan 19, 2023
@dnadoba
Copy link
Member

dnadoba commented Jan 19, 2023

Thanks @mob-connection for this patch and sorry for the delay!

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

Successfully merging this pull request may close these issues.

Special case EventLoopPromise.succeed() when Value is Void
5 participants