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 AsyncDrain #25

Merged
merged 3 commits into from
May 18, 2016
Merged

Add AsyncDrain #25

merged 3 commits into from
May 18, 2016

Conversation

noppoMan
Copy link
Member

@noppoMan noppoMan commented Apr 29, 2016

This PR is for adding AsyncDrain that has similar apis to Drain.
And it is required for open-swift/S4#52

Please review this!

buffer = []
completion {}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Newline.

@tanner0101
Copy link
Contributor

You've got a thumbs up from me. But @paulofaria knows more about this stuff so let's wait for his thumbs up as well.

I think we can merge this today since it's been neglected for so long.


stream.receive(upTo: 1024, timingOut: deadline) { [unowned self] in
do {
let chunk = try $0()
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer to use getData here instead of $0.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK. I'll change it.

@noppoMan
Copy link
Member Author

@paulofaria @tannernelson I fixed some issues. When this is merged and released with next tag then I'm gonna resolve conflicts for open-swift/S4#52.
Then the test will be passed.

@antonmes antonmes merged commit 3b0af12 into open-swift:master May 18, 2016
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.

4 participants