Re-implementing wait_all using techniques similar to dataflow() and the new when_all. This fixes #1278: Implement improved when_all/wait_all