skip method

Future<void> skip()

Discards the part, so the next one can start.

Does nothing when something already read it — draining a consumed stream would throw, and the bytes are gone either way.

Implementation

Future<void> skip() async {
  if (_taken) return;
  await content.drain<void>();
}