implicit final class WritableExtensions[W <: IWritable] extends AnyVal
- Alphabetic
- By Inheritance
- WritableExtensions
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new WritableExtensions(writable: W)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def endFuture(): Future[Unit]
- Annotations
- @inline()
- def endFuture(chunk: String): Future[Unit]
- Annotations
- @inline()
- def endFuture(chunk: String, encoding: String): Future[Unit]
- Annotations
- @inline()
- def endFuture(chunk: Buffer): Future[Unit]
- Annotations
- @inline()
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def onClose(listener: () => Any): W
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()
- def onDrain(listener: () => Any): W
If a stream.write(chunk) call returns false, then the 'drain' event will indicate when it is appropriate to begin writing more data to the stream.
If a stream.write(chunk) call returns false, then the 'drain' event will indicate when it is appropriate to begin writing more data to the stream.
- Annotations
- @inline()
- def onError(listener: (Error) => Any): W
Emitted if there was an error when writing or piping data.
Emitted if there was an error when writing or piping data.
- Annotations
- @inline()
- def onFinish(listener: () => Any): W
When the stream.end() method has been called, and all data has been flushed to the underlying system, this event is emitted.
When the stream.end() method has been called, and all data has been flushed to the underlying system, this event is emitted.
- Annotations
- @inline()
- def onPipe[R <: IReadable](listener: (R) => Any): W
This is emitted whenever the stream.pipe() method is called on a readable stream, adding this writable to its set of destinations.
This is emitted whenever the stream.pipe() method is called on a readable stream, adding this writable to its set of destinations.
- Annotations
- @inline()
- def onUnpipe[R <: IReadable](listener: (R) => Any): W
This is emitted whenever the stream.unpipe() method is called on a readable stream, removing this writable from its set of destinations.
This is emitted whenever the stream.unpipe() method is called on a readable stream, removing this writable from its set of destinations.
- Annotations
- @inline()
- def toString(): String
- Definition Classes
- Any
- def writeFuture(chunk: String): Future[Unit]
- Annotations
- @inline()
- def writeFuture(chunk: String, encoding: String): Future[Unit]
- Annotations
- @inline()
- def writeFuture(chunk: Uint8Array): Future[Unit]
- Annotations
- @inline()