commonMain.com.ditchoom.data.Writer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of socket-js Show documentation
Show all versions of socket-js Show documentation
Simple multiplatform kotlin coroutines based socket.
package com.ditchoom.data
import kotlin.time.Duration
import kotlin.time.ExperimentalTime
@ExperimentalTime
interface Writer {
suspend fun write(buffer: T, timeout: Duration): Int
}