Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

make completion closures @escaping #54

Merged
merged 1 commit into from
Aug 11, 2016

Conversation

noppoMan
Copy link
Member

@noppoMan noppoMan commented Aug 9, 2016

This PR adds @escaping annotation to the AsyncX completion closures cause Swift made nonescape closures default(swiftlang/swift#4052).
Almost async functions need to call completion in nested closures that are made with file system, netwroking operations etc...

@dreymonde
Copy link
Contributor

dreymonde commented Aug 10, 2016

Yeah, making noescape by default introduced us to a lot of @escaping boilerplate… Anyway, 👍 for this PR.

@noppoMan
Copy link
Member Author

noppoMan commented Aug 11, 2016

Yeah, We need to add a lot of @escaping boilerplate.. Especially it brought terror to the projects that depend on libuv haha.

@open-swift/contributors Could I merge this?

@dreymonde
Copy link
Contributor

@noppoMan :shipit:

@paulofaria
Copy link
Contributor

:shipit:

@noppoMan noppoMan merged commit 6b6683f into open-swift:master Aug 11, 2016
@noppoMan noppoMan deleted the escaping-closure branch August 11, 2016 13:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants