sink

fun sink(sink: Sink): Sink

Returns a new sink that delegates to sink, using this to implement timeouts. This works best if timedOut is overridden to interrupt sink's current operation.