in reply to Re^2: AnyEvent code blocking Twiggy event loop
in thread AnyEvent code blocking Twiggy event loop

but I'm still not understanding why AE::timer is blocking my main thread.

Its not AE::time, its the blocking system calls sleep/ipc/qx

AE is cooperative multitasking meaning if any one part of the code decides to block, no other piece of code gets a chance to run

Also, is there any reason why code in timer or fork_call doesn't (seem to) execute at all under any other server (Starman, Gazelle, HTTP::Server::Simple, etc.)?

maybe you're trying stuff on win32 ... impossible to guess at reasons without code/diagnostics

  • Comment on Re^3: AnyEvent code blocking Twiggy event loop