<FMLiveSwitchIPromise> Protocol Reference

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...
 

Detailed Description

Interface for a promise that can be rejected.

Method Documentation

◆ castAndResolveWithResult:

- (bool) castAndResolveWithResult: (id result

Casts the result and resolves the promise.

Will throw an exception if the cast fails.

Parameters
resultThe result.

◆ rejectWithException:

- (bool) rejectWithException: (NSException *)  exception

Rejects the promise.

Parameters
exceptionThe exception.