toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.generator
/
AsyncGenerator
Async
Generator
sealed
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
fun
next
(
value
:
TNext
)
:
Promise
<
IteratorResult
<
T
,
TReturn
>
>
abstract
fun
next
(
)
:
Promise
<
IteratorResult
<
T
,
*
>
>
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
>
>