Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
buildbreaker committed Aug 10, 2023
1 parent f4f978a commit afcdc00
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,20 @@ package build.buf.connect
* eventually receives a response) that can send request messages and initiate closes.
*/
interface ClientOnlyStreamInterface<Input, Output> {
/**
*
*/
suspend fun receiveAndClose(): StreamResult<Output>
/**
* Send a request to the server over the stream.
*
* @param input The request message to send.
*/
suspend fun send(input: Input): Result<Unit>

/**
* Receive a single response and close the stream.
*
* @return the single response [StreamResult].
*/
suspend fun receiveAndClose(): StreamResult<Output>

/**
* Close the stream. No calls to [send] are valid after calling [close].
*/
Expand Down

0 comments on commit afcdc00

Please sign in to comment.