Opened 8 years ago

#6641 enhancement new

Cancellable Deferred support for result of twisted.internet.threads.deferToThreadPool

Reported by: Itamar Turner-Trauring Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Kai Zhang, Jean-Paul Calderone, ashfall Branch:


For the Deferred returned from deferToThreadPool

  1. If the item is still queued for running, we can try to make sure it isn't run. Probably by setting a flag on it would do. This should probably be implemented as separate ticket.
  2. If the item is already running, we can't actually cancel the operation. But, we should make sure that if it eventually fires we don't get AlreadyCalledError, and increase the thread pool's thread count temporarily until the operation finishes so we don't run out of threads.

Change History (0)

Note: See TracTickets for help on using tickets.