Skip to content

Commit

Permalink
a little more commentary on the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Nov 16, 2020
1 parent 1117ce1 commit 51e3c04
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ and PyQt5 are supported.

By enabling use of ``async`` and ``await`` it is possible in some cases to write related
code more concisely and clearly than you would get with the signal and slot mechanisms
of Qt concurrency. See the ``README`` examples in the docs for the full code.
of Qt concurrency. See the ``README`` examples in the docs for the full code. The
first example here shows classic pure Qt code.

.. code-block:: python
Expand Down Expand Up @@ -80,8 +81,8 @@ of Qt concurrency. See the ``README`` examples in the docs for the full code.
def output_finished(self) -> None:
QtCore.QCoreApplication.instance().quit()
Note how by using ``async`` and ``await`` we are able to more clearly and concisely
describe the sequenced activity.
The second example, below, shows how using ``async`` and ``await`` allows for more
concise and clearly description of the sequenced activity.

.. code-block:: python
Expand Down

0 comments on commit 51e3c04

Please sign in to comment.