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