We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How about a function like:
object Flowables { inline fun <T> create( mode: BackpressureStrategy, crossinline source: (FlowableEmitter<T>) -> Unit ): Flowable<T> = Flowable.create({ source(it) }, mode) }
That would let us have code like:
Flowables.create<Int>(BackpressureStrategy.BUFFER) { it.onNext(1) it.onNext(2) it.onNext(3) }
Instead of:
Flowable.create<Int>({ it.onNext(1) it.onNext(2) it.onNext(3) }, BackpressureStrategy.BUFFER)
The text was updated successfully, but these errors were encountered:
Sounds good. Can you put in a PR?
Sorry, something went wrong.
Add Flowables.create with lambda as last parameter (ReactiveX#188)
c8db5ce
Add Flowables.create with lambda as last parameter (#188) (#190)
f189e0c
No branches or pull requests
How about a function like:
That would let us have code like:
Instead of:
The text was updated successfully, but these errors were encountered: