Add minor improvements and fix some typos in the CodeKata instructions

This commit is contained in:
Zsolt Boldizsár 2022-05-03 15:32:17 +03:00
parent 5999ef475e
commit 3e8253cddc
No known key found for this signature in database
GPG key ID: CD5A9C5FDEFC753D
4 changed files with 48 additions and 45 deletions

View file

@ -452,13 +452,12 @@ We can simply implement the interface of ContentRemoteSource. Have it's method s
Something along the way of:
```kotlin
class SuspendingContentRemoteSource {
class SuspendingContentRemoteSource : ContentRemoteSource {
private var completableDeferred = CompletableDeferred<Unit>()
@Throws(NetworkException::class, ParsingException::class)
suspend fun get(): List<Content> {
completableDeferred = CompletableDeferred()
override suspend fun get(): List<Content> {
completableDeferred.await()
return emptyList()
}