Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: Break out from download

by jcb (Priest)
on Apr 10, 2020 at 01:27 UTC ( #11115303=note: print w/replies, xml ) Need Help??

in reply to Re^2: Break out from download
in thread Break out from download

LWP invokes the callback inside an eval; using die will be caught and translated into an "X-Died" header in the response object.

You will need to arrange for the "Cancel" button to set a flag that the callback then checks. Having the Tk callback handler directly die will abort the run through the event loop and may or may not cause problems. Tk is a very complex XS module, so it would be best to avoid throwing an exception "around the event loop" directly.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11115303]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2020-06-01 17:28 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (5 votes). Check out past polls.