Preparing search index...
The search index is not available
mithic - v0.3.0
mithic
@mithic/commons
MaybeAsyncIterator
Interface MaybeAsyncIterator<T, TReturn, TNext>
An Iterator that may be async.
interface
MaybeAsyncIterator
{
next
(
...
args
)
:
MaybePromise
<
IteratorResult
<
T
,
TReturn
>
>
;
return
?
(
value
?
)
:
MaybePromise
<
IteratorResult
<
T
,
TReturn
>
>
;
throw
?
(
e
?
)
:
MaybePromise
<
IteratorResult
<
T
,
TReturn
>
>
;
}
Type Parameters
T
TReturn
=
any
TNext
=
unknown
Index
Methods
next
return?
throw?
Methods
next
next
(
...
args
)
:
MaybePromise
<
IteratorResult
<
T
,
TReturn
>
>
Parameters
Rest
...
args
:
[
]
|
[
TNext
]
Returns
MaybePromise
<
IteratorResult
<
T
,
TReturn
>
>
Optional
return
return
(
value
?
)
:
MaybePromise
<
IteratorResult
<
T
,
TReturn
>
>
Parameters
Optional
value
:
MaybePromise
<
TReturn
>
Returns
MaybePromise
<
IteratorResult
<
T
,
TReturn
>
>
Optional
throw
throw
(
e
?
)
:
MaybePromise
<
IteratorResult
<
T
,
TReturn
>
>
Parameters
Optional
e
:
unknown
Returns
MaybePromise
<
IteratorResult
<
T
,
TReturn
>
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
next
return
throw
mithic - v0.3.0
@mithic/collections - v0.3.0
@mithic/commons - v0.3.0
@mithic/cqrs - v0.3.0
@mithic/crdt - v0.3.0
@mithic/jsonr - v0.3.0
@mithic/messaging - v0.3.0
@mithic/denokv - v0.3.0
@mithic/ipfs - v0.3.0
@mithic/level - v0.3.0
@mithic/redis - v0.3.0
Generated using
TypeDoc
An Iterator that may be async.