Package com.openai.core.http
Interface AsyncStreamResponse
-
- All Implemented Interfaces:
public interface AsyncStreamResponse<T extends Object>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
AsyncStreamResponse.Handler
-
Method Summary
Modifier and Type Method Description abstract AsyncStreamResponse<T>
subscribe(AsyncStreamResponse.Handler<T> handler)
abstract AsyncStreamResponse<T>
subscribe(AsyncStreamResponse.Handler<T> handler, Executor executor)
abstract Unit
close()
Closes this resource, relinquishing any underlying resources. -
-
Method Detail
-
subscribe
abstract AsyncStreamResponse<T> subscribe(AsyncStreamResponse.Handler<T> handler)
-
subscribe
abstract AsyncStreamResponse<T> subscribe(AsyncStreamResponse.Handler<T> handler, Executor executor)
-
close
abstract Unit close()
Closes this resource, relinquishing any underlying resources.
This is purposefully not inherited from AutoCloseable because this response should not be synchronously closed via try-with-resources.
-
-
-
-