Interface for a promise that can be rejected. More...
Instance Methods | |
(bool) | - castAndResolveWithResult: |
Casts the result and resolves the promise. More... | |
(bool) | - rejectWithException: |
Rejects the promise. More... | |
Interface for a promise that can be rejected.
- (bool) castAndResolveWithResult: | (id) | result |
Casts the result and resolves the promise.
Will throw an exception if the cast fails.
result | The result. |
- (bool) rejectWithException: | (NSException *) | exception |
Rejects the promise.
exception | The exception. |