async def asyncio_subprocess(strip_lengths, start, end): """ Subprocess for concurrent_asyncio """ toy = Toy(strip_lengths) toy.start(start) toy.run(finish_state=end) # print(start, toy.rel_solutions()) return toy.rel_solutions()
def subprocess(strip_lengths, start, end): """ Subprocess for embarrassinly parallel """ toy = Toy(strip_lengths) toy.start(start) toy.run(finish_state=end) # print(start, toy.rel_solutions()) return toy.rel_solutions()