Package io.servicetalk.oio.api.internal
Class PayloadWriterUtils
java.lang.Object
io.servicetalk.oio.api.internal.PayloadWriterUtils
Utilities for
PayloadWriter
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
safeClose
(PayloadWriter<T> writer, Throwable cause) InvokesPayloadWriter.close(Throwable)
ignoring an occurred exception if any.
-
Method Details
-
safeClose
InvokesPayloadWriter.close(Throwable)
ignoring an occurred exception if any.- Type Parameters:
T
- The type ofPayloadWriter
.- Parameters:
writer
- ThePayloadWriter
to close.cause
- The cause to pass toPayloadWriter.close(Throwable)
.
-