dart-lang / dart-lang/native

Generate async bindings for `java.io.InputStream`

Open
#1,189 0 comments 5 reactions 0 assignees View on GitHub
good first issue package:jni package:jnigen
Dominant language
Dart
Stars
275
Forks
144
Avg merge
2d 10h
Merged PRs (30d)
47

Description

Would it make sense to have a wrapper that converts a `java.io.InputStream` into a Dart `Stream`?

The context is HTTP bindings for okhttp where the HTTP result is returned asynchronously but result body has to be ready synchronously through an `java.io.InputStream` (there are other options but they are all synchronous).

It would be cool if there was a bridge from Java stream-like things into Dart `Stream`s.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.