-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Precondition-fail in Swift-NIO #93
Comments
@everlof ok yes, I see this as well. Looks like this code was added since we integrated nio, but it is a good addition as indicated by the list of reasons that invoking wait on the main event loop is a bad idea. https://github.com/apple/swift-nio/blame/master/Sources/NIO/EventLoopFuture.swift#L801 Until we have support for running nio requests w/o the invoking wait you need to wrap calls in a DispatchQueue.global().async {} block try
|
@everlof any luck? |
Thanks for the feedback! I Haven't had time to try it out yet, other things got in the way. Ill be sure to update here as soon as I've tried the workaround! |
this is resolved in 3.x |
I use version 2.0.2 of "aws-sdk-swift".
Using the code below, I get a precondition failure in Swift-NIO.
I looks like this:
I can't really solve it myself. I see there's some comments regarding the code:
//TODO(jmca) don't block
And:
Anyone know how this could be solved?
The text was updated successfully, but these errors were encountered: