All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.web.streams.ReadableStream.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

package web.streams

import kotlinx.js.ReadonlyArray
import kotlinx.js.Void
import kotlin.js.Promise

external interface ReadableStream {
    val locked: Boolean
    fun cancel(reason: Any = definedExternally): Promise
    fun getReader(): ReadableStreamDefaultReader
    fun  pipeThrough(
        transform: ReadableWritablePair,
        options: StreamPipeOptions = definedExternally,
    ): ReadableStream

    fun pipeTo(
        destination: WritableStream,
        options: StreamPipeOptions = definedExternally,
    ): Promise

    fun tee(): ReadonlyArray<*> /* [ReadableStream, ReadableStream] */

    // HIDDEN METHOD START
    /*
    values(options?: { preventCancel?: boolean }): AsyncIterableIterator
    */
    // HIDDEN METHOD END

    /* [Symbol.asyncIterator](): AsyncIterableIterator */
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy