Add ContinuationAdapter to coroutine tests helpers

It allows having the same Continuation implementations for different
API versions
This commit is contained in:
Denis Zharkov
2018-06-29 17:34:29 +03:00
parent f01e690f49
commit f23a0c8fea
33 changed files with 55 additions and 45 deletions
@@ -34,5 +34,9 @@ fun createTextForHelpers(coroutinesPackage: String): String {
| override fun resume(data: Any?) {}
| override fun resumeWithException(exception: Throwable) { throw exception }
|}
|
|abstract class ContinuationAdapter<in T> : Continuation<T> {
| override val context: CoroutineContext = EmptyCoroutineContext
|}
""".trimMargin()
}