Am Donnerstag, 22. Mai 2014 03:05:43 UTC+2 schrieb Guido van Rossum: > > Ah, I think I understand. You can probably solve this by having a Future > and making the callback set the Future's result. Perhaps you should also > run the 3rd party code in a thread. >
Thanks for your help, but I think I didn’t understand: The callback gets called a few hundreds of times. I want to give the user a chance to cancel at any time, a good approximation being “every time the callback gets called”. One future would only work if the callback would be called one time, no?
