Skip to content

Add concurrency extension for Swift 5.5.2 - #31

Open
MikeChongCan wants to merge 1 commit into
vtourraine:mainfrom
MikeChongCan:add-concurrency-extension-for-swift-5.5.2
Open

Add concurrency extension for Swift 5.5.2#31
MikeChongCan wants to merge 1 commit into
vtourraine:mainfrom
MikeChongCan:add-concurrency-extension-for-swift-5.5.2

Conversation

@MikeChongCan

Copy link
Copy Markdown

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

This can help us improve the completion callback.

@vtourraine

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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