Can you show the code you are referring to? I cannot figure out what your
question is from your description.


On Wed, May 21, 2014 at 2:42 PM, Phil Schaf <[email protected]>wrote:

> Hi,
>
> I have some long-running 3rd party code where you can register a callback
> that’ll get called once progress happens. (i.e. often)
>
> I want to be able to kill the job. The call to this 3rd party code is
> inside a task, so when I replace the 3rd-party code with a loop that
> yields, it would work.
>
> Is it somehow possible to yield once that callback gets called? Or any
> other way to force the 3rd party code to yield sometimes?
>
> Best, philipp
>



-- 
--Guido van Rossum (python.org/~guido)

Reply via email to