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. #SmackDown 18.8K posts
- 2. #WorldSeries 66K posts
- 3. Snell 7,099 posts
- 4. Cole Anthony 1,255 posts
- 5. Halo 135K posts
- 6. Darryn Peterson 1,566 posts
- 7. Celtics 17.4K posts
- 8. Jade Cargill 3,733 posts
- 9. #TheLastDriveIn N/A
- 10. Purdue 6,243 posts
- 11. PlayStation 63.6K posts
- 12. Knicks 21.2K posts
- 13. $BIEBER N/A
- 14. Yesavage 6,906 posts
- 15. Grizzlies 3,417 posts
- 16. Zion 15.1K posts
- 17. Zelina N/A
- 18. #LetsGoDodgers 5,794 posts
- 19. Xbox 76.6K posts
- 20. Clement 4,895 posts
Something went wrong.
Something went wrong.