using pool as the new method obtains results as soon as they are availablethe order in which the results are returned may be differentas shown belowin worker with in worker with in worker with in worker with in worker with in worker with further method available on the pool class is the pool apply_async(method this method allows operations/functions to be executed asynchronously allowing the method calls to return immediately that is as soon as the method call is madecontrol is returned to the calling code which can continue immediately any results to be collected from the asynchronous operations can be obtained either by providing callback function or by using the blocking get(method to obtain result two examples are shown belowthe first uses the blocking get(method this method will wait until result is available before continuing the second approach uses callback function the callback function is called when result is availablethe result is passed into the function