in reply to How does AnyEvent work?
AnyEvent is like NodeJS. Actually more appropriate, NodeJS is more like AnyEvent, as NodeJS is based on libuv, which I think is a fork of libev, the OG backend event loop for AnyEvent.
Just as NodeJS, CPU bound operations block the rest, so you have to transfer them out of process.
In Section Seekers of Perl Wisdom