WriteableStream: R6 Class representing a writeable connection

Description Details Super class Methods

Description

R6 Class representing a writeable connection

R6 Class representing a writeable connection

Details

Events:

Super class

emitters::EventEmitter -> WriteableStream

Methods

Public methods

Inherited methods

Method new()

Create a new WriteableStream object

Usage
WriteableStream$new(
  source_object,
  highwater_mark = NULL,
  queue_strategy = object.size,
  encoding = "UTF8",
  auto_destroy = TRUE
)
Arguments
source_object

a file path, connection, processx connection, socket connection, or appendable object

highwater_mark

maximum buffer size

Returns

A new ReadableStream object. TODOC TODOC TODOC TODOC TODOC


Method print()

Usage
WriteableStream$print()

Method write()

Usage
WriteableStream$write(text, encoding = private$.writeable_encoding)

Method cork()

Usage
WriteableStream$cork()

Method uncork()

Usage
WriteableStream$uncork()

Method end()

Usage
WriteableStream$end()

Method destroy()

Usage
WriteableStream$destroy(why = NULL)

ElianHugh/emitters documentation built on Feb. 6, 2022, 4:55 a.m.