Example #1
0
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()
Example #2
0
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()