Constructors

Link copied to clipboard
constructor(pubnub: PubNub, params: PubNub.FireParameters)

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 fun async(callback: Consumer<Result<PNPublishResult>>)
Link copied to clipboard
fun <T> PNFuture<T>.catch(action: (Exception) -> Result<T>): PNFuture<T>
Link copied to clipboard
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>