Umi — API References - v1.3.0
Preparing search index...
umi-tasks
Disposable
Class Disposable
Index
Constructors
constructor
Methods
close
get
Cancelation
Error
get
Scope
is
Canceled
on
Cancel
run
Constructors
constructor
new
Disposable
(
signal
:
AbortSignal
)
:
Disposable
Parameters
signal
:
AbortSignal
Returns
Disposable
Methods
close
close
()
:
void
Returns
void
get
Cancelation
Error
getCancelationError
()
:
unknown
Returns
unknown
get
Scope
getScope
()
:
DisposableScope
Returns
DisposableScope
is
Canceled
isCanceled
()
:
boolean
Returns
boolean
on
Cancel
onCancel
(
callback
:
(
reason
:
unknown
)
=>
unknown
)
:
Disposable
Parameters
callback
:
(
reason
:
unknown
)
=>
unknown
Returns
Disposable
run
run
<
T
>
(
callback
:
(
scope
:
DisposableScope
)
=>
T
,
thenCloseDisposable
?:
boolean
,
)
:
Promise
<
T
>
Type Parameters
T
Parameters
callback
:
(
scope
:
DisposableScope
)
=>
T
thenCloseDisposable
:
boolean
= true
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
close
get
Cancelation
Error
get
Scope
is
Canceled
on
Cancel
run
Umi — API References - v1.3.0
Loading...