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 concurrency extension for Swift 5.5.2 #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

imWildCat
Copy link

Similar change: https://github.com/ReactiveX/RxSwift/pull/2367/files

This can help us improve the completion callback.

@vtourraine
Copy link
Owner

Hello Daohan, and thanks a lot for the pull request!

It’s an interesting addition, but I think we should add a bit more documentation/comment around it. Maybe add a sample code in the README?

}
}

open class func openCompose(_ client: ThirdPartyMailClient = .systemDefault, recipient: String? = nil, subject: String? = nil, body: String? = nil, cc: String? = nil, bcc: String? = nil) async -> Bool {
Copy link
Owner

Choose a reason for hiding this comment

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

Couldn’t we define just one method, with a default value for the application parameter?

Copy link
Author

Choose a reason for hiding this comment

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

Good question!

I tried @MainActor here but still could not add this default parameter:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants