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

js.web.streams.WritableStreamDefaultWriter Maven / Gradle / Ivy

package js.web.streams;

import js.lang.Any;
import js.lang.VoidPromise;
import org.teavm.jso.JSProperty;

/**
 * This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the <
 * writer to the WritableStream ensuring that no other streams can write to the underlying sink.
 */
public interface WritableStreamDefaultWriter {
    @JSProperty
    VoidPromise getClosed();

    @JSProperty
    int getDesiredSize();

    @JSProperty
    VoidPromise getReady();

    VoidPromise abort(Any reason);

    VoidPromise abort();

    VoidPromise close();

    void releaseLock();

    VoidPromise write(W chunk);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy