Wish AsyncStreams lib - built in flush command

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hello

I came across this https://www.b4x.com/android/forum/threads/asyncstream-and-flush.146655/ as I had a issue with data not being flushed from an AsyncStreams. I implemented the solution in both B4A (Client App) and B4J (Server).

I was wondering (if possible) could it be added, the flush method, as a standard command in the AsyncStreams library, both B4A and B4J, perhaps in the next release.

Regards

John.
 
you can modify AsyncStreams.java file that provided by Erel on Github and write your public method to do Flush eg:

B4X: Copy
 public void Flush() throws IOException {
        synchronized (out) {
            out.flush();
        }
    }
 
Back
Top