Trait

io.scalajs.npm.angularjs

Q

Related Doc: package angularjs

Permalink

trait Q extends Object

Q Service - A service that helps you run functions asynchronously, and use their return values (or exceptions) when they are done processing.

Annotations
@RawJSType() @native()
See also

https://docs.angularjs.org/api/ng/service/$q

Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Q
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def all[T](promises: Object): Promise[T]

    Permalink
  5. def all[T](promises: Array[Any]): Promise[T]

    Permalink

    Combines multiple promises into a single promise that is resolved when all of the input promises are resolved.

    Combines multiple promises into a single promise that is resolved when all of the input promises are resolved.

    promises

    An array or hash of promises.

    returns

    Returns a single promise that will be resolved with an array/hash of values, each value corresponding to the promise at the same index/key in the promises array/hash. If any of the promises is resolved with a rejection, this resulting promise will be rejected with the same rejection value.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def defer[T](): QDefer[T]

    Permalink

    Creates a Deferred object which represents a task which will finish in the future.

    Creates a Deferred object which represents a task which will finish in the future.

    returns

    a new instance of deferred.

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  21. def reject[T](reason: Any): Promise[T]

    Permalink

    Creates a promise that is resolved as rejected with the specified reason.

    Creates a promise that is resolved as rejected with the specified reason. This api should be used to forward rejection in a chain of promises. If you are dealing with the last promise in a promise chain, you don't need to worry about it. When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of reject as the throw keyword in JavaScript. This also means that if you "catch" an error via a promise error callback and you want to forward the error to the promise derived from the current promise, you have to "rethrow" the error by returning a rejection constructed via reject.

    reason

    Constant, message, exception or an object representing the rejection reason.

    returns

    a promise that was already resolved as rejected with the reason.

  22. def resolve[T](value: Any): Promise[T]

    Permalink

    Alias of when to maintain naming consistency with ES6.

    Alias of when to maintain naming consistency with ES6.

    value

    Value or a promise

    returns

    Returns a promise of the passed value or promise

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def when[T](value: Any): Promise[T]

    Permalink

    Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.

    Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted.

    value

    Value or a promise

    returns

    Returns a promise of the passed value or promise

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped