All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.swmansion.starknet.provider.Request.kt Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy