Class

io.scalajs.nodejs.stream.Readable

ReadableEvents

Related Doc: package Readable

Permalink

implicit final class ReadableEvents extends AnyVal

Readable Events

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadableEvents
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReadableEvents(readable: Readable)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. def onClose(listener: () ⇒ Any): readable.type

    Permalink

    Emitted when the stream and any of its underlying resources (a file descriptor, for example) have been closed.

    Emitted when the stream and any of its underlying resources (a file descriptor, for example) have been closed. The event indicates that no more events will be emitted, and no further computation will occur.

    Annotations
    @inline()
  8. def onData[A](listener: (A) ⇒ Any): readable.type

    Permalink

    Attaching a 'data' event listener to a stream that has not been explicitly paused will switch the stream into flowing mode.

    Attaching a 'data' event listener to a stream that has not been explicitly paused will switch the stream into flowing mode. Data will then be passed as soon as it is available.

    Annotations
    @inline()
  9. def onEnd(listener: () ⇒ Any): readable.type

    Permalink

    This event fires when there will be no more data to read.

    This event fires when there will be no more data to read. Note that the 'end' event will not fire unless the data is completely consumed. This can be done by switching into flowing mode, or by calling stream.read() repeatedly until you get to the end.

    Annotations
    @inline()
  10. def onError(listener: (Error) ⇒ Any): readable.type

    Permalink

    Emitted if there was an error when writing or piping data.

    Emitted if there was an error when writing or piping data.

    Annotations
    @inline()
  11. def onReadable(listener: () ⇒ Any): readable.type

    Permalink

    When a chunk of data can be read from the stream, it will emit a 'readable' event.

    When a chunk of data can be read from the stream, it will emit a 'readable' event. In some cases, listening for a 'readable' event will cause some data to be read into the internal buffer from the underlying system, if it hadn't already.

    Annotations
    @inline()
  12. val readable: Readable

    Permalink
  13. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped