Simplify futures.as_completed implementation