diff options
Diffstat (limited to 'devel/py-qasync/pkg-descr')
-rw-r--r-- | devel/py-qasync/pkg-descr | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/devel/py-qasync/pkg-descr b/devel/py-qasync/pkg-descr index 3d6f3319aed6..e46c02d90772 100644 --- a/devel/py-qasync/pkg-descr +++ b/devel/py-qasync/pkg-descr @@ -1,2 +1,14 @@ -qasync allows coroutines to be used in PyQt/PySide applications by providing an -implementation of the PEP 3156 event-loop. +qasync allows coroutines to be used in PyQt/PySide applications by providing +an implementation of the PEP 3156 event loop. + +With qasync, you can use asyncio functionalities directly inside Qt app's +event loop, in the main thread. Using async functions for Python tasks can +be much easier and cleaner than using threading.Thread or QThread. + +If you need some CPU-intensive tasks to be executed in parallel, qasync also +provides QEventLoop.run_in_executor which is functionally identical to that +of asyncio. By default QThreadExecutor is used, but any class implementing +the concurrent.futures.Executor interface will work. + +qasync is a fork of asyncqt, which is a fork of quamash. qasync was created +because those are no longer maintained. |