Turns synchronous functions into asynchronous functions using Web Workers