trait Timeout extends Object
Timeout Service - Angular's wrapper for window.setTimeout.
- Annotations
- @RawJSType() @native()
- See also
- Alphabetic
- By Inheritance
- Timeout
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(fn: Function, delay: Int = 0, invokeApply: Boolean = true, pass: Any = js.native): Promise[Any]
Angular's wrapper for window.setTimeout.
Angular's wrapper for window.setTimeout. The fn function is wrapped into a try/catch block and delegates any exceptions to $exceptionHandler service.
- fn
A function, whose execution should be delayed.
- delay
Delay in milliseconds.
- invokeApply
If set to false skips model dirty checking, otherwise will invoke fn within the $apply block (default: true).
- pass
additional parameters to the executed function.
- returns
A promise which will be notified on each iteration.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cancel(promise: UndefOr[Promise[Any]] = js.undefined): Boolean
Cancels a task associated with the promise.
Cancels a task associated with the promise.
- promise
returned by the $interval function.
- returns
true if the task was successfully canceled.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flush(delay: Int = 0): Unit
Synchronously flushes the queue of deferred functions.
Synchronously flushes the queue of deferred functions.
- delay
Delay in milliseconds.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
def
verifyNoPendingTasks(): Boolean
Verifies that there are no pending tasks that need to be flushed.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )