Changelog#
0.6.0#
Now
QtAsyncRunner.close()will cause all running coroutines to never be called back into the main thread.Letting coroutines resume into the main thread after
close()has been called can be problematic, specially in tests, asclose()is often called during test teardown. If the user missed to properly wait on a coroutine during the test, what can happen is that the coroutine will resume (when the thread finishes), possibly after resources have already been cleared, specially widgets.Dropping seems harsh, but follows what other libraries like
asynciodo when faced with the same situation.We might consider adding a
waitflag or something like that in the future to instead of cancelling the coroutines, wait for them.AsyncTester.start_and_wait()now receives an optionaltimeout_sparameter, which overwritesAsyncTester.timeout_s.
0.5.2#
New attribute
AsyncTester.timeout_s, with the timeout in seconds untilstart_and_waitraisesTimeoutError.
0.4.0#
0.3.1#
Relax requirements for PyQt to
>=5.12.
0.3.0#
Added missing
py.typedfile, enabling type-checking.
0.2.1#
Fixed small linting issues, automatic deploy.
0.1#
First release.