1
0
Files
electrum/electrum
SomberNight 96c063028a qt TaskThread: implement cancellation of tasks, for cleaner shutdown
fixes https://github.com/spesmilo/electrum/issues/7750

Each task we schedule on `TaskThread` can provide an optional `cancel` method.
When stopping `TaskThread`, we call this `cancel` method on all tasks in the queue.
If the currently running task does not implement `cancel`, `TaskThread.stop` will block
until that task finishes.

Note that there is a significant change in behaviour here:
`ElectrumWindow.run_coroutine_from_thread` and `ElectrumWindow.pay_lightning_invoice`
previously serialised the execution of their coroutines via wallet.thread.
This is no longer the case: they will now schedule coroutines immediately.
So for example, the GUI now allows trying to pay multiple LN invoices "concurrently".
2022-04-07 19:51:58 +02:00
..
2021-04-30 19:43:53 +02:00
2020-06-23 19:25:07 +02:00
2020-06-05 13:17:01 +02:00
2021-03-21 00:36:23 -04:00
2021-03-21 00:36:23 -04:00
2022-03-02 11:42:49 +00:00
2021-04-08 19:49:43 +02:00
fix
2022-02-28 15:17:56 +01:00
2021-09-15 16:41:41 +02:00
2021-09-24 17:36:33 +02:00
2021-03-21 00:36:23 -04:00
2021-07-15 14:52:25 +00:00
2021-09-27 10:31:44 +02:00
2021-07-16 11:27:36 +02:00
2021-03-21 00:36:23 -04:00
2021-03-21 00:36:23 -04:00
2019-02-11 20:21:24 +01:00
2021-05-06 19:47:22 +09:00
2021-06-22 19:24:16 +02:00
2022-04-04 20:55:47 +02:00
2022-03-24 15:59:14 +01:00