Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: AnyEvent code blocking Twiggy event loop

by Anonymous Monk
on Apr 26, 2015 at 23:56 UTC ( [id://1124813]=note: print w/replies, xml ) Need Help??


in reply to AnyEvent code blocking Twiggy event loop

sleep is usually blocking ... you need to find the AE version of sleep
  • Comment on Re: AnyEvent code blocking Twiggy event loop

Replies are listed 'Best First'.
Re^2: AnyEvent code blocking Twiggy event loop
by Anonymous Monk on Apr 27, 2015 at 00:15 UTC
    Thought it might be that, but the problem still exists if I do something else that takes a long time. In my real world application I'm having issues with, I'm calling an external Python script with backticks.

      Maybe now is a good time to understand how nonblocking operations work and what the process model of AnyEvent and Twiggy is?

      Also see AnyEvent::Open3::Simple, but personally, I would just launch the other script as a detached process that writes its output to a logfile and then tail that logfile.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-23 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found