Search
Preparing search index...
The search index is not available
@inventory/async - v0.0.7
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
"timer"
Timer
Class Timer
Hierarchy
BasePromise
<
undefined
>
Timer
Index
Constructors
constructor
Methods
catch
finally
pause
set
start
stop
then
create
Constructors
constructor
new
Timer
(
duration
:
number
)
:
Timer
Parameters
duration:
number
Returns
Timer
Methods
catch
catch<TResult>
(
onrejected
?:
PromiseOnRejected
<
TResult
>
)
:
Promise
<
ResolveType
|
TResult
>
Type parameters
TResult
Parameters
Optional
onrejected:
PromiseOnRejected
<
TResult
>
Returns
Promise
<
ResolveType
|
TResult
>
finally
finally
(
onfinally
?:
PromiseOnFinally
)
:
Promise
<
ResolveType
>
Parameters
Optional
onfinally:
PromiseOnFinally
Returns
Promise
<
ResolveType
>
pause
pause
(
)
:
this
Returns
this
set
set
(
duration
:
number
)
:
this
Parameters
duration:
number
Returns
this
start
start
(
)
:
this
Returns
this
stop
stop
(
error
?:
Error
)
:
this
Parameters
Optional
error:
Error
Returns
this
then
then<TResult1, TResult2>
(
onfulfilled
?:
PromiseOnFulfilled
<
undefined
,
TResult1
>
, onrejected
?:
PromiseOnRejected
<
TResult2
>
)
:
Promise
<
TResult1
|
TResult2
>
Type parameters
TResult1
TResult2
Parameters
Optional
onfulfilled:
PromiseOnFulfilled
<
undefined
,
TResult1
>
Optional
onrejected:
PromiseOnRejected
<
TResult2
>
Returns
Promise
<
TResult1
|
TResult2
>
Static
create
create
(
duration
:
number
)
:
Timer
Parameters
duration:
number
Returns
Timer
Globals
"deferred"
"promise"
"timer"
Timer
Status
Timer
constructor
catch
finally
pause
set
start
stop
then
create
Timer
Completed
Timer
Paused
Timer
Running
Timer
Waiting
Generated using
TypeDoc