Lightspeed Interview Question

How to handle heavy computations in event loop?