aboutsummaryrefslogtreecommitdiffstats
path: root/coin_test_instructions.py
diff options
context:
space:
mode:
authorAdrian Herrmann <adrian.herrmann@qt.io>2023-09-18 22:47:43 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-11-24 23:46:18 +0000
commit593ea17278207926144be734a7e5d8eb4078ec46 (patch)
tree1179be6a13196bedd2360099a3358886677536d6 /coin_test_instructions.py
parent329c274ffa6c163a8cd1af02dabbded80a3882a6 (diff)
QtAsyncio: Add wrapper for calls in executor
Executors require a bit of extra work for QtAsyncio, as we can't use naked Python threads, instead we must make sure that the thread created by executor.submit() has an event loop. This is achieved by submitting a small wrapper that attaches a QEventLoop to the executor thread, and then creates a singleshot timer to push the actual function for the executor into this new event loop. Task-number: PYSIDE-769 Change-Id: I77569d8939d6040ddbe62a99448c6ced2785f27e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit e89d05ec5f703922b334233aa48005f828b16281) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'coin_test_instructions.py')
0 files changed, 0 insertions, 0 deletions