Skip to content

Instantly share code, notes, and snippets.

@JRWilding
JRWilding / RepoResult.kt
Last active June 23, 2022 08:52 — forked from monday8am/RepoResult.kt
RepoResult
/* Different solutions for future RepoResult (?) object! */
/*
* James!
*/
interface TourSource<R: ResultReason> {
suspend fun getTour(id: String) : Result<Tour, R>
suspend fun saveTour(tour: Tour) : Result<?, R> // maybe just a boolean whether it was successful?
}