Skip to content

Commit

Permalink
Update ktor-io/common/src/io/ktor/utils/io/SinkByteWriteChannel.kt
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Wharton <[email protected]>
  • Loading branch information
e5l and JakeWharton authored Jan 10, 2025
1 parent d97ac31 commit a8777bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ktor-io/common/src/io/ktor/utils/io/SinkByteWriteChannel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ import kotlinx.io.*
*
* Please note that the channel will be buffered even if the sync is not.
*/
public fun RawSink.asByteWriteChannel(): ByteWriteChannel = SinkByteWriteChannel(this).apply {
}
public fun RawSink.asByteWriteChannel(): ByteWriteChannel = SinkByteWriteChannel(this)

private suspend fun x() {
val rawSink: RawSink = Buffer()
Expand Down

0 comments on commit a8777bb

Please sign in to comment.