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

Re: Dancer2: respond to client while making its own async call

by stevieb (Canon)
on Apr 01, 2021 at 19:33 UTC ( [id://11130686]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    print $event->status == -1 ? "Event stopped\n" : "Event running\n";
    
    print "$data\n";
    
  2. or download this
    {"charge": 85}
    Main program continues...
    Background event still running...
    Event stopped
    {"charge": 100}
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-29 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found