Preparing search index...
The search index is not available
@ibm-cloud/watsonx-ai
@ibm-cloud/watsonx-ai
1.7.x
lib/common
Stream
Class Stream<T>
Type Parameters
T
Implements
AsyncIterable
<
T
>
Index
Constructors
constructor
Properties
controller
iterator
Methods
[async
Iterator]
create
Stream
Constructors
constructor
new
Stream
<
T
>
(
iterator
,
controller
)
:
Stream
<
T
>
Type Parameters
T
Parameters
iterator
:
(
(
)
=>
AsyncIterator
<
T
,
any
,
undefined
>
)
(
)
:
AsyncIterator
<
T
,
any
,
undefined
>
Returns
AsyncIterator
<
T
,
any
,
undefined
>
controller
:
AbortController
Returns
Stream
<
T
>
Properties
controller
controller
:
AbortController
Private
iterator
iterator
:
(
(
)
=>
AsyncIterator
<
T
,
any
,
undefined
>
)
Type declaration
(
)
:
AsyncIterator
<
T
,
any
,
undefined
>
Returns
AsyncIterator
<
T
,
any
,
undefined
>
Methods
[async
Iterator]
[async
Iterator]
(
)
:
AsyncIterator
<
T
,
any
,
undefined
>
Returns
AsyncIterator
<
T
,
any
,
undefined
>
Static
create
Stream
create
Stream
<
T
>
(
stream
,
controller
)
:
Promise
<
Stream
<
T
>
>
Type Parameters
T
Parameters
stream
:
Transform
controller
:
AbortController
Returns
Promise
<
Stream
<
T
>
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
constructor
controller
iterator
[async
Iterator]
create
Stream
@ibm-cloud/watsonx-ai
Loading...