kin-android / kin.utils / Request
open class Request<T :
Any
!>
Represents method invocation, each request will run sequentially on background thread, and will notify ``ResultCallback
witch success or error on main thread.
Name | Summary |
---|---|
<init> | Should not be constructing these outside the base-compat sdk implementation. Here for to support the interface in posterity only.Request(callable: Callable <T>!) Request(request: Promise <T>!, mapError: (( Exception !) -> Exception !)!) |
Name | Summary |
---|---|
cancel | Here for to support the interface in posterity only.open fun cancel(mayInterruptIfRunning: Boolean ): Unit |
run | Run request asynchronously, notify callback with successful result or erroropen fun run(callback: ResultCallback <T>!): Unit |
setCallbackExecutor | open static fun setCallbackExecutor(es: ExecutorService !): Unit |