com.swmansion.starknet.provider.Request.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of starknet Show documentation
Show all versions of starknet Show documentation
Starknet SDK for JVM languages
package com.swmansion.starknet.provider
import java.util.concurrent.CompletableFuture
/**
* An interface implemented by all return values of providers.
*/
interface Request {
/**
* Send a request synchronously
*
* @return a result of the request
*/
fun send(): T
/**
* Send a request asynchronously
*
* @return CompletableFuture with the request result
*/
fun sendAsync(): CompletableFuture
}