Skip to content

Commit ffcc947

Browse files
author
Aaron Tull
committed
Added Custom Observable to DESIGN.md
Custom observable implementations per the Consumable proposal.
1 parent b63a565 commit ffcc947

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

DESIGN.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,11 @@ class Completable {
251251

252252
> onSubscribe (onError | onComplete)?
253253
254+
##### Custom Observable, Single, Completable, or Flowable
255+
256+
An implementation of an Observable which can be subscribed to with an `Observer`. Custom (`Observable`|`Single`|`Completable`|`Flowable`) classes would implement the interface `Consumable<S>` where the generic type `S` is a `Flowable.Subscriber<T>`, `Observable.Observer<T>`, `Completable.Subscriber<T>`, or a `Single.Subscriber<T>` depending on which semantics the custom class will follow. This choice would also affect the kinds of observables the custom class could interop with. For instance, `Flowable#merge` could operate over the standard `Flowable` or any custom class which implements `Consumable<Flowable.Subscriber<T>>`.
257+
258+
For more information see the proof of concept project [Consumable](https://github.com/stealthcode/Consumable).
254259

255260
##### Observer
256261

0 commit comments

Comments
 (0)