Lightspeed interview question

How to handle heavy computations in event loop?