QAsync
@qasync
QAsync is a new way to write asynchronous Qt applications. Single thread, multiple simultaneous asynchronous tasks.
내가 좋아할 만한 콘텐츠
Just make sure that everybody has found it... The source code is available here: gitorious.org/~hhedberg/qt/q…
Our white paper explains the motivation behind the solution and the actual implementation: qasync.henrikhedberg.com/whitepaper
The source code is actually pushed out already. Who is the first to find it?
We took one week off, but we are almost ready to share our solution with you now. It will happen within few days!
All asynchronous functions end up calling QAsync::waitAsync(), which gives control back to the Qt's event loop until the task has completed.
In the core of our solution is a new class: QAsync. It provides means to suspend a function until an asynchronous task has completed.
@kypeli It is an alternative way to express functionality. With QAsync, there no need to split asynchronous code into separate slots.
What is QAsync? It is a new way to write asynchronous Qt applications. Single thread with multiple simultaneous asynchronous tasks.
This week we will go deeper into internals of our solution. We will also focus on finalizing the release, so there will be less tweeting.
The catch in our Node example is closure. The execution context may be easily shared between "slots" when practical. pastebin.com/jFh8Ea9G
We like to learn and get inspired from other languages and frameworks. Now the TCP server is implemented using Node. pastebin.com/jFh8Ea9G
@qasync Is the solution to generate some code at compile-time (like moc does) or is there run-time tricks (or both)?
Actually, our solution is based on signals and slots. We will introduce an alternative way how those can be used. #Qt
Do we hate signals? No, absolute not! We love signals, the best thing since sliced bread. We just think that choices are needed sometimes.
Here is another working example. This time it is a client-side utility function to fetch data addressed by an URL. pastebin.com/ULXhk1fL
@qasync I think that you should open this solution to community :) will it be part of qt5?
Finally! Here is the working version of the original #Qt code. Just a word with five letters added. What do you think? pastebin.com/1WqE7321
United States 트렌드
- 1. #VERZUZ 40.7K posts
- 2. Birdman 10.2K posts
- 3. No Limit 28K posts
- 4. Mia X 586K posts
- 5. Wayne 35.8K posts
- 6. Brian Kelly 3,462 posts
- 7. #HalloweenHavoc 43.2K posts
- 8. Turk 583K posts
- 9. Tamar 7,664 posts
- 10. Jonas Brothers 4,288 posts
- 11. Master P 5,616 posts
- 12. Snoop 9,388 posts
- 13. Juvie 3,413 posts
- 14. Michigan 34.1K posts
- 15. Sixers 6,618 posts
- 16. Tim Banks N/A
- 17. Will Smith 10.3K posts
- 18. Semaj 1,974 posts
- 19. Gausman 5,386 posts
- 20. Silkk 1,765 posts
Something went wrong.
Something went wrong.