def METHOD_NAME(self):
    for buffer_index in self.ready_buffer_index:
        buffer = self._get_buffer(buffer_index)
        swap_tensors = buffer.get_swap_tensors()
        swap_paths = buffer.get_swap_paths()
        self.num_pending_swaps += len(swap_tensors)
        swap_out_tensors(self.aio_handle, swap_tensors, swap_paths)
    self.swapping_buffer_index += self.ready_buffer_index
    self.ready_buffer_index = []