toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.generator
/
AsyncGenerator
Async
Generator
external
class
AsyncGenerator
<
out
T
,
TReturn
,
in
TNext
>
:
AsyncIterator
<
T
>
(
source
)
Members
Functions
get
Link copied to clipboard
open
operator
fun
get
(
key
:
Symbol.asyncIterator
)
:
(
)
->
AsyncIterator
<
T
>
iterator
Link copied to clipboard
open
inline operator override
fun
iterator
(
)
:
SuspendableIterator
<
T
>
next
Link copied to clipboard
open
override
fun
next
(
)
:
Promise
<
IteratorResult
<
T
,
TReturn
>
>
fun
next
(
value
:
TNext
=
definedExternally
)
:
Promise
<
IteratorResult
<
T
,
TReturn
>
>
return
Link copied to clipboard
fun
return
(
value
:
TReturn
)
:
Promise
<
IteratorResult
<
T
,
TReturn
>
>
fun
return
(
value
:
PromiseLike
<
TReturn
>
)
:
Promise
<
IteratorResult
<
T
,
TReturn
>
>
throw
Link copied to clipboard
fun
throw
(
error
:
JsError
)
:
Promise
<
IteratorResult
<
T
,
TReturn
>
>