add "wait_all_children_with_timeout" method.
add test and doc for wait_all_children_with_timeout.