def METHOD_NAME(
    queue,
    return_queue,
    do_build,
    do_build_kwargs,
    do_execute,
    local_parameters,
):
    actor = parallelActor(do_build, do_build_kwargs, do_execute, local_parameters)
    while True:
        if queue.empty():
            break
        else:
            i, local_parameters = queue.get()
            result = actor.execute(local_parameters)
            return_queue.put([i, local_parameters, result])