Added inline for when_all() and when_any().