Preparing search index...
The search index is not available
@nextcloud/files
@nextcloud/files
dav
<internal>
CancelablePromise
Class CancelablePromise<T>
Type Parameters
T
=
any
Hierarchy (
View Summary
)
CancelablePromiseInternal
<
T
>
CancelablePromise
Index
Constructors
constructor
Properties
[to
String
Tag]
all
all
Settled
any
is
Cancelable
race
reject
resolve
Methods
cancel
catch
finally
is
Canceled
then
Constructors
constructor
new
CancelablePromise
<
T
=
any
>
(
executor
:
(
resolve
:
(
value
:
T
|
PromiseLike
<
T
>
)
=>
void
,
reject
:
(
reason
?:
any
)
=>
void
,
onCancel
:
(
cancelHandler
:
()
=>
void
)
=>
void
,
)
=>
void
,
)
:
CancelablePromise
<
T
>
Type Parameters
T
=
any
Parameters
executor
:
(
resolve
:
(
value
:
T
|
PromiseLike
<
T
>
)
=>
void
,
reject
:
(
reason
?:
any
)
=>
void
,
onCancel
:
(
cancelHandler
:
()
=>
void
)
=>
void
,
)
=>
void
Returns
CancelablePromise
<
T
>
Properties
[to
String
Tag]
"[toStringTag]"
:
string
Static
all
all
:
<
T_1
extends
[
]
|
readonly
unknown
[]
>
(
values
:
T_1
,
)
=>
CancelablePromise
<
{
-
readonly
[
P
in
string
|
number
|
symbol
]
:
Awaited
<
T_1
[
P
<
P
>
]
>
}
,
>
Static
all
Settled
allSettled
:
{
<
T_1
extends
[
]
|
readonly
unknown
[]
>
(
values
:
T_1
,
)
:
CancelablePromise
<
{
-
readonly
[
P
in
string
|
number
|
symbol
]
:
PromiseSettledResult
<
Awaited
<
T_1
[
P
<
P
>
]
>
>
}
,
>
;
<
T_2
>
(
values
:
Iterable
<
T_2
|
PromiseLike
<
T_2
>
|
CancelablePromise
<
T_2
>
,
any
,
any
,
>
,
)
:
CancelablePromise
<
PromiseSettledResult
<
Awaited
<
T_2
>
>
[]
>
;
}
Static
any
any
:
{
<
T_1
extends
[
]
|
readonly
unknown
[]
>
(
values
:
T_1
,
)
:
CancelablePromise
<
Awaited
<
T_1
[
number
]
>
>
;
<
T_2
>
(
values
:
Iterable
<
T_2
|
PromiseLike
<
T_2
>
|
CancelablePromise
<
T_2
>
,
any
,
any
,
>
,
)
:
CancelablePromise
<
Awaited
<
T_2
>
>
;
}
Static
is
Cancelable
isCancelable
:
(
promise
:
any
)
=>
boolean
Static
race
race
:
<
T_1
extends
[
]
|
readonly
unknown
[]
>
(
values
:
T_1
,
)
=>
CancelablePromise
<
Awaited
<
T_1
[
number
]
>
>
Static
reject
reject
:
<
T_1
=
never
>
(
reason
?:
any
)
=>
CancelablePromise
<
T_1
>
Static
resolve
resolve
:
{
()
:
CancelablePromise
<
void
>
;
<
T_1
>
(
value
:
T_1
|
PromiseLike
<
T_1
>
|
CancelablePromise
<
T_1
>
,
)
:
CancelablePromise
<
T_1
>
;
}
Methods
cancel
cancel
()
:
void
Returns
void
catch
catch
<
TResult
=
never
>
(
onrejected
?:
|
null
|
(
reason
:
any
,
)
=>
TResult
|
PromiseLike
<
TResult
>
|
CancelablePromise
<
TResult
>
,
)
:
CancelablePromise
<
T
|
TResult
>
Type Parameters
TResult
=
never
Parameters
Optional
onrejected
:
|
null
|
(
reason
:
any
,
)
=>
TResult
|
PromiseLike
<
TResult
>
|
CancelablePromise
<
TResult
>
Returns
CancelablePromise
<
T
|
TResult
>
finally
finally
(
onfinally
?:
null
|
()
=>
void
,
runWhenCanceled
?:
boolean
,
)
:
CancelablePromise
<
T
>
Parameters
Optional
onfinally
:
null
|
()
=>
void
Optional
runWhenCanceled
:
boolean
Returns
CancelablePromise
<
T
>
is
Canceled
isCanceled
()
:
boolean
Returns
boolean
then
then
<
TResult1
=
T
,
TResult2
=
never
>
(
onfulfilled
?:
|
null
|
(
value
:
T
,
)
=>
TResult1
|
PromiseLike
<
TResult1
>
|
CancelablePromise
<
TResult1
>
,
onrejected
?:
|
null
|
(
reason
:
any
,
)
=>
TResult2
|
PromiseLike
<
TResult2
>
|
CancelablePromise
<
TResult2
>
,
)
:
CancelablePromise
<
TResult1
|
TResult2
>
Type Parameters
TResult1
=
T
TResult2
=
never
Parameters
Optional
onfulfilled
:
|
null
|
(
value
:
T
,
)
=>
TResult1
|
PromiseLike
<
TResult1
>
|
CancelablePromise
<
TResult1
>
Optional
onrejected
:
|
null
|
(
reason
:
any
,
)
=>
TResult2
|
PromiseLike
<
TResult2
>
|
CancelablePromise
<
TResult2
>
Returns
CancelablePromise
<
TResult1
|
TResult2
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
[to
String
Tag]
all
all
Settled
any
is
Cancelable
race
reject
resolve
Methods
cancel
catch
finally
is
Canceled
then
@nextcloud/files
Loading...