Back to Wails

Interface CancellablePromiseLike<T>

v3/internal/runtime/desktop/@wailsio/runtime/docs/interfaces/CancellablePromiseLike.html

2.15.02.6 KB
Original Source
  • CancellablePromiseLike

Interface CancellablePromiseLike<T>

interface CancellablePromiseLike<T> {
cancel(cause?: any): void | PromiseLike<void>;
then<TResult1 = T, TResult2 = never>(
onfulfilled?:
| (
(
value: T,
) => TResult1 | PromiseLike<TResult1> | CancellablePromiseLike<TResult1>
)
| null,
onrejected?:
| (
(
reason: any,
) => TResult2 | PromiseLike<TResult2> | CancellablePromiseLike<TResult2>
)
| null,
): CancellablePromiseLike<TResult1 | TResult2>;
}

Type Parameters

  • T

Implemented by

Index

Methods

cancelthen

Methods

cancel

cancel(cause?: any): void | PromiseLike<void>

Parameters

  • Optionalcause: any

Returns void | PromiseLike<void>

then

then<TResult1 = T, TResult2 = never>(
onfulfilled?:
| (
(
value: T,
) => TResult1 | PromiseLike<TResult1> | CancellablePromiseLike<TResult1>
)
| null,
onrejected?:
| (
(
reason: any,
) => TResult2 | PromiseLike<TResult2> | CancellablePromiseLike<TResult2>
)
| null,
): CancellablePromiseLike<TResult1 | TResult2>

Type Parameters

  • TResult1 = T
  • TResult2 = never

Parameters

Returns CancellablePromiseLike<TResult1 | TResult2>

Settings

Member Visibility

  • Protected
  • Inherited
  • External

ThemeOSLightDark

On This Page

Methods cancelthen