Skip to content

Commit

Permalink
refactor : flow 요청 컨텍스트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gogoadl committed Jul 11, 2023
1 parent e92bca9 commit 61735ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class CocktailRepositoryImpl @Inject constructor(
override fun getCocktailById(id: String): Flow<Cocktail> = flow {
val cocktail = cocktailService.getCocktail(id)
emit(cocktail)
}
}.flowOn(ioDispatcher)

override fun getRandomCocktail(): Flow<Cocktail> = flow {
val cocktail = cocktailService.getRandomCocktail()
emit(cocktail)
}
}.flowOn(ioDispatcher)
}

0 comments on commit 61735ee

Please sign in to comment.