Package io.servicetalk.oio.api.internal
Class PayloadWriterUtils
- java.lang.Object
-
- io.servicetalk.oio.api.internal.PayloadWriterUtils
-
public final class PayloadWriterUtils extends java.lang.Object
Utilities forPayloadWriter
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> void
safeClose(PayloadWriter<T> writer, java.lang.Throwable cause)
InvokesPayloadWriter.close(Throwable)
ignoring an occurred exception if any.
-
-
-
Method Detail
-
safeClose
public static <T> void safeClose(PayloadWriter<T> writer, java.lang.Throwable cause)
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)
.
-
-