asInputStream

Creates a blocking InputStream parented by the parent job.

  • Canceling the parent job interrupts blocking reads but leaves this channel open.

  • Closing the stream closes this channel but does not cancel the parent job.

The caller is responsible for closing the stream.

Report a problem

Parameters

parent

a parent job for blocking reads.