I am trying to add multiprocessing to some code which features functions that I can not modify. I want to submit these functions as jobs to a multiprocessing pool asynchronously. So, given that I cannot modify the functions, how could I specify different timeouts for different functions passed asynchronously to a multiprocessing process pool? Thanks for any suggestions!
EDIT: This question is not requesting code; it is requesting suggestions, general guidance. A minimal understanding of the problem under consideration is demonstrated (note the correct use of the terms "multiprocessing", "pool" and "asynchronously"). Regarding attempted solutions, how can one present attempted solutions if one does not know how to proceed?
Further, as the first response explains, there appears to be no way to accomplish that which is asked. In other words, any attempt at a solution would fail.