object Companion
source · line 18public
public companion
Factories that transfer underlying endpoint cleanup responsibility.
function takeOwnership
source · line 23public
public fun <T> takeOwnership(source: T, limits: SseLimits = SseLimits(), initialLastEventId: String = "", bufferSize: Long = 8192L): SseSource where T : AsyncByteSource, T : AsyncCloseable
Creates the adapter and assumes cleanup responsibility for the supplied asynchronous endpoint.
type parameter T
source · line 23public
T
parameter limits
source · line 23public
limits: SseLimits = SseLimits()
parameter initialLastEventId
source · line 23public
initialLastEventId: String = ""
parameter source
source · line 23public
source: T
parameter bufferSize
source · line 23public
bufferSize: Long = 8192L