Typescript Library Declarations (ES2023)
Interface AsyncIterator<T, TReturn, TNext>
Type Parameters
T
TReturn
=
any
TNext
=
undefined
Hierarchy
AsyncIterator
AsyncGenerator
AsyncIterableIterator
Index
Methods
next
return?
throw?
Methods
next
next
(
...
args
)
:
Promise
<
IteratorResult
<
T
,
TReturn
>
>
Parameters
Rest
...
args
:
[
]
|
[
TNext
]
Returns
Promise
<
IteratorResult
<
T
,
TReturn
>
>
Optional
return
return
(
value
?
)
:
Promise
<
IteratorResult
<
T
,
TReturn
>
>
Parameters
Optional
value
:
TReturn
|
PromiseLike
<
TReturn
>
Returns
Promise
<
IteratorResult
<
T
,
TReturn
>
>
Optional
throw
throw
(
e
?
)
:
Promise
<
IteratorResult
<
T
,
TReturn
>
>
Parameters
Optional
e
:
any
Returns
Promise
<
IteratorResult
<
T
,
TReturn
>
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
next
return
throw