Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by stevieb (Canon)
on Apr 01, 2021 at 19:33 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2022-07-06 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?