Preparing search index...
The search index is not available
prolink-connect
prolink-connect
<internal>
PromiseDuplex
Class PromiseDuplex<TDuplex>
Type Parameters
TDuplex
extends
DuplexStream
Hierarchy
PromiseReadable
<
TDuplex
>
PromiseDuplex
PromiseSocket
Implements
AsyncIterable
<
Buffer
|
string
>
Index
Constructors
constructor
Properties
_errored?
_is
Promise
Readable
is
Promise
Readable
is
Promise
Writable
readable
stream
writable
Methods
[async
Iterator]
destroy
end
iterate
once
read
read
All
set
Encoding
write
write
All
[has
Instance]
Constructors
constructor
new
Promise
Duplex
<
TDuplex
>
(
stream
:
TDuplex
)
:
PromiseDuplex
<
TDuplex
>
Type Parameters
TDuplex
extends
DuplexStream
<
TDuplex
>
Parameters
stream:
TDuplex
Returns
PromiseDuplex
<
TDuplex
>
Properties
Optional
_errored
_errored
?:
Error
Readonly
_is
Promise
Readable
_is
Promise
Readable
:
boolean
Readonly
is
Promise
Readable
is
Promise
Readable
:
boolean
Readonly
is
Promise
Writable
is
Promise
Writable
:
boolean
Readonly
readable
readable
:
PromiseReadable
<
TDuplex
>
Readonly
stream
stream
:
TDuplex
Readonly
writable
writable
:
PromiseWritable
<
TDuplex
>
Methods
[async
Iterator]
[async
Iterator]
(
)
:
AsyncIterableIterator
<
string
|
Buffer
>
Returns
AsyncIterableIterator
<
string
|
Buffer
>
destroy
destroy
(
)
:
void
Returns
void
end
end
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
iterate
iterate
(
size
?:
number
)
:
AsyncIterableIterator
<
string
|
Buffer
>
Parameters
Optional
size:
number
Returns
AsyncIterableIterator
<
string
|
Buffer
>
once
once
(
event
:
"close"
|
"error"
|
"end"
|
"finish"
)
:
Promise
<
void
>
Parameters
event:
"close"
|
"error"
|
"end"
|
"finish"
Returns
Promise
<
void
>
once
(
event
:
"open"
)
:
Promise
<
number
>
Parameters
event:
"open"
Returns
Promise
<
number
>
once
(
event
:
"pipe"
|
"unpipe"
)
:
Promise
<
ReadableStream
>
Parameters
event:
"pipe"
|
"unpipe"
Returns
Promise
<
ReadableStream
>
read
read
(
size
?:
number
)
:
Promise
<
undefined
|
string
|
Buffer
>
Parameters
Optional
size:
number
Returns
Promise
<
undefined
|
string
|
Buffer
>
read
All
read
All
(
)
:
Promise
<
undefined
|
string
|
Buffer
>
Returns
Promise
<
undefined
|
string
|
Buffer
>
set
Encoding
set
Encoding
(
encoding
:
BufferEncoding
)
:
PromiseDuplex
<
TDuplex
>
Parameters
encoding:
BufferEncoding
Returns
PromiseDuplex
<
TDuplex
>
write
write
(
chunk
:
string
|
Buffer
, encoding
?:
BufferEncoding
)
:
Promise
<
number
>
Parameters
chunk:
string
|
Buffer
Optional
encoding:
BufferEncoding
Returns
Promise
<
number
>
write
All
write
All
(
content
:
string
|
Buffer
, chunkSize
?:
number
)
:
Promise
<
number
>
Parameters
content:
string
|
Buffer
Optional
chunkSize:
number
Returns
Promise
<
number
>
Static
[has
Instance]
[has
Instance]
(
instance
:
any
)
:
boolean
Parameters
instance:
any
Returns
boolean
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
prolink-
connect
<internal>
"node:stream/consumers"
"node:stream/promises"
Event
Emitter
Mutex
Interface
Span
Status
internal
finished
pipeline
CDJStatus
Promise
Duplex
constructor
_errored?
_is
Promise
Readable
is
Promise
Readable
is
Promise
Writable
readable
stream
writable
[async
Iterator]
destroy
end
iterate
once
read
read
All
set
Encoding
write
write
All
[has
Instance]
Generated using
TypeDoc