Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gitar] Migrating from RxJava to Flow #4

Closed

Conversation

gitar-bot-staging[bot]
Copy link

Gitar

Details

Triggered via #1 (comment) by @lazaroclapp


This automated PR was generated by Gitar. View docs.

Comment on lines -3 to -16
import io.reactivex.rxjava3.core.Observable

object Streams {
fun stream1(): Observable<String> {
return Observable.just("a", "b", "c", "d", "e", "f")
fun stream1(): Flow<String> {
return flowOf("a", "b", "c", "d", "e", "f")
}

fun stream2(): Observable<String> {
return Observable.fromIterable(listOf("x", "y", "z"))
fun stream2(): Flow<String> {
return flowOf("x", "y", "z")
}

fun stream3(): Observable<String> {
return Observable.fromCallable { call() }
.delay(10, TimeUnit.MILLISECONDS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

staging @gitar-bot /skip-cleanup stream1

@gitar-bot-staging gitar-bot-staging bot force-pushed the gitar_migration_java_rx_to_kotlin_flow branch 3 times, most recently from 5ed5a00 to f0b3fa3 Compare September 17, 2024 20:21
@gitar-bot-staging gitar-bot-staging bot force-pushed the gitar_migration_java_rx_to_kotlin_flow branch from f0b3fa3 to c38596e Compare September 17, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant