Jake Wharton

Results 497 issues of Jake Wharton

We want to fail sooner, and in the IDE!

enhancement
PR welcome

Since the JS VM runs on a single thread, doing heavy work in a service dispatch will block other work. This thread should be treated like a main thread, so...

enhancement

`CoroutineDispatcher.invoke`, a function used as such: ```kotlin Dispatchers.IO { stuff } ``` is a shorter version of `withContext` that only works with dispatchers. Does this function need to exist? It...

design

``` okio.PipeKotlinTest[jvm] > honorsUnderlyingSinkDeadlineOnFlushingWhenItIsSmaller[jvm] FAILED java.lang.AssertionError: expected: but was: at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:555) at org.junit.Assert.assertEquals(Assert.java:685) at okio.PipeKotlinTest.assertDuration(PipeKotlinTest.kt:831) at okio.PipeKotlinTest.honorsUnderlyingSinkDeadlineOnFlushingWhenItIsSmaller(PipeKotlinTest.kt:469) ```

tests
PR welcome

``` okio.SocketTimeoutTest[jvm] > writeWithTimeout[jvm] FAILED java.lang.AssertionError: elapsed: 751618625 at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.assertTrue(Assert.java:42) at okio.SocketTimeoutTest.writeWithTimeout(SocketTimeoutTest.kt:81) ```

tests
PR welcome

``` okio.AwaitSignalTest[jvm] > signaled[BASE][jvm] FAILED java.lang.AssertionError: expected: but was: at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:555) at org.junit.Assert.assertEquals(Assert.java:685) at okio.AwaitSignalTest.assertElapsed(AwaitSignalTest.kt:208) at okio.AwaitSignalTest.signaled(AwaitSignalTest.kt:57) ```

tests
PR welcome

I'm writing an inner-loop parser around a `Source` that does various look-ahead operations to determine delimiters for a sequence of bytes and then processes it. Since this delimiter always terminates...

Now that the public API type naming was simplified from Okio, the `Buffered-` prefixes can be used for the implementations to more correctly convey their behavior. The use of "Real"...

enhancement

Okio was written in Java before being ported to Kotlin, and binary compatibility meant we retained the use of signed numbers. With this library being a fresh take on its...

enhancement
Design