Basics - The AsyncWorker

In this example, you will see how to start an AsyncWorker, create a new worker with a custom task, define a custom result type for your worker, and define custom signals that your worker can emit. The output of these workers will print to the terminal for now. In later examples, you will see how to use an AsyncWorker within a full PySide6 application, but first let’s start with the basics: