Add minor improvements and fix some typos in the CodeKata instructions
This commit is contained in:
parent
5999ef475e
commit
3e8253cddc
4 changed files with 48 additions and 45 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue