MappingRemoteAction

class MappingRemoteAction<T, U>(remoteAction: ExtendedRemoteAction<T>, function: (T) -> U) : ExtendedRemoteAction<U>

Constructors

Link copied to clipboard
constructor(remoteAction: ExtendedRemoteAction<T>, function: (T) -> U)

Functions

Link copied to clipboard
fun <T> PNFuture<T>.alsoAsync(action: (T) -> PNFuture<*>): PNFuture<T>

Execute a second PNFuture after this PNFuture completes successfully, and return the original value of this PNFuture after the second PNFuture completes successfully.

Link copied to clipboard
open override fun async(callback: Consumer<Result<U>>)
Link copied to clipboard
fun <T> PNFuture<T>.catch(action: (Exception) -> Result<T>): PNFuture<T>
Link copied to clipboard
fun <T, U> ExtendedRemoteAction<T>.map(function: (T) -> U): ExtendedRemoteAction<U>
Link copied to clipboard
open override fun operationType(): PNOperationType
Link copied to clipboard
Link copied to clipboard
open override fun retry()
Link copied to clipboard
open override fun silentCancel()
Link copied to clipboard
open override fun sync(): U
Link copied to clipboard
fun <T, U> PNFuture<T>.then(action: (T) -> U): PNFuture<U>
Link copied to clipboard
fun <T, U> PNFuture<T>.thenAsync(action: (T) -> PNFuture<U>): PNFuture<U>