code: def resample(
          self,
          rule: Union[str, int] = "1s",
          max_workers: int = 4,
      ) -> "Traffic":
          
  
          with ProcessPoolExecutor(max_workers=max_workers) as executor:
              cumul = []
              tasks = {
                  executor.submit(flight.resample, rule): flight
                  for flight in self
              }
              for future in tqdm(as_completed(tasks), total=len(tasks)):
                  cumul.append(future.result())
  
          return self.__class__.from_flights(cumul)
docs: Resamples all trajectories, flight by flight.
  
          `rule` defines the desired sample rate (default: 1s)