Scoop API

scoop:scoop.http.asyncio:0.1.0

SseSink

class SseSink

source · line 9
public
public class SseSink private constructor(private val writer: AsyncSseWriter) : AsyncCloseable

Serial SSE output over a borrowed sink; closing releases only local resources.

function flush

source · line 29
public
public suspend fun flush(): Unit

Flushes the borrowed downstream sink without ending its HTTP body.

function close

source · line 32
public
public override suspend fun close(): Unit

Cancels and joins in-flight output before releasing the local buffer.