⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@cbrunsdon
Copy link
Contributor

This picks off a few quick places where okio was not being used in favor of platform-specific calls which okio wraps which can be taken advantage of.

Wire uses/exposes okio pretty frequently so its probably safe to assume these were just oversights or legacy reasons nobody has cared to change themselves.

This is typealiased by okio for JVM classes, so should be binary/api
compatible on JVM (the only one that cared about it).

This is also pretty standard for the rest of wire-runtime:

```
$ rg "import okio.IOEx" wire-runtime | wc
     19      38    1790
```
Okio's closeable had the same signature so we're good to use it in
commonMain.

Moved the specific docs to the interface level to avoid needing to
override the method just to doc it here, and avoid having to change the
.api file.
Like MessageSink before it, we can reuse okio's closeable as it has the
same signature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant