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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
How await works. Support for async function #1
Comments
Hi, thank you. :) |
An example of await can be found in README. I'll make a project with examples later during development; meanwhile you can take a look at unit tests in order to see how it works. |
@malcommac Hi, got it. Thanks 馃憤 |
This should be mentioned in the README that await simply blocks the current thread. I first thought await magically worked similar to the C# await keyword and couldn't believe that this was even possible in Swift until I looked into the code to discover that it just blocks. |
@tomquist yeah, I had the same thought too |
Yeah I think you are right; I've missed to explicitly add it to the documentation. I've also added I'm also looking a way to make it easier to write; if you have some suggestions I'll be more than happy to implement them. |
Hi, cool library 馃憤
I was reading through https://github.com/malcommac/Hydra/blob/master/Sources/Hydra/Await.swift#L109
so we're turning async code -> sync code by blocking the current thread?
Also, it would be cooler if there's an example project 馃槈
The text was updated successfully, but these errors were encountered: