Skip to content

Commit

Permalink
Add onBackpressureBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
zhxnlai committed Jan 17, 2019
1 parent e6e0578 commit e08af6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ While we are working on Bintray support, Scarlet is available via [JitPack][jitp
<dependency>
<groupId>com.github.tinder.scarlet</groupId>
<artifactId>scarlet</artifactId>
<version>0.2.2-alpha1</version>
<version>0.2.2-alpha2</version>
</dependency>
```

Expand All @@ -98,7 +98,7 @@ repositories {
maven { url "https://jitpack.io" }
}
implementation 'com.github.tinder.scarlet:scarlet:$0.2.2-alpha1'
implementation 'com.github.tinder.scarlet:scarlet:$0.2.2-alpha2'
```

### Plug-in Roadmap
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

android.enableJetifier=true
android.useAndroidX=true
version=0.2.2-alpha1
version=0.2.2-alpha2
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ internal class Coordinator(
@Synchronized
override fun receive(stubMethod: StubMethod.Receive): Any {
val stream = Flowable.defer<StateTransition> { publishProcessor }
.onBackpressureBuffer()
.observeOn(scheduler)
// TODO handle deserialization here
// TODO pass deserialzed value to protocol event so that sse event can use deserailized message
Expand Down

0 comments on commit e08af6a

Please sign in to comment.