public class IQService extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier | Constructor and Description |
---|---|
protected |
IQService(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
<T> IPromise<T> |
$apply(Function.A1<? super IQResolveReject<T>,? extends Object> resolver) |
<T> IPromise<T> |
$apply(Function.A2<? super IQResolveReject<T>,? super IQResolveReject<Object>,? extends Object> resolver) |
static IQService |
$as(Object obj) |
<TAll> IPromise<TAll[]> |
all(IPromise<TAll>[] promises) |
<T1,T2> IPromise<Object[]> |
all(Object[] values) |
<T> IPromise<T> |
all(Objs promises) |
<T> IDeferred<T> |
defer()
Creates a Deferred object which represents a task which will finish in the future.
|
IPromise<Object> |
reject()
Creates a promise that is resolved as rejected with the specified reason.
|
IPromise<Object> |
reject(Object reason)
Creates a promise that is resolved as rejected with the specified reason.
|
IPromise<Void> |
resolve()
Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
|
<T> IPromise<T> |
resolve(IPromise<T> value)
Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
|
<T> IPromise<T> |
resolve(T value)
Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
|
IPromise<Void> |
when()
Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
|
<T> IPromise<T> |
when(IPromise<T> value)
Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
|
<T> IPromise<T> |
when(T value)
Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
|
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
protected IQService(Objs.Constructor<?> c, Object js)
public <T> IPromise<T> $apply(Function.A1<? super IQResolveReject<T>,? extends Object> resolver)
public <T> IPromise<T> $apply(Function.A2<? super IQResolveReject<T>,? super IQResolveReject<Object>,? extends Object> resolver)
public <T> IDeferred<T> defer()
public IPromise<Object> reject(Object reason)
reason
- Constant, message, exception or an object representing the rejection reason.public IPromise<Object> reject()
reason
- Constant, message, exception or an object representing the rejection reason.public IPromise<Void> resolve()
public <T> IPromise<T> resolve(IPromise<T> value)
value
- Value or a promisepublic <T> IPromise<T> resolve(T value)
value
- Value or a promisepublic IPromise<Void> when()
public <T> IPromise<T> when(IPromise<T> value)
value
- Value or a promisepublic <T> IPromise<T> when(T value)
value
- Value or a promiseCopyright © 2018. All rights reserved.