Interface CompletableSource
- All Known Implementing Classes:
Completable, CompletableSubject
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a basic
Completable source base interface,
consumable via an CompletableObserver.- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidsubscribe(@NonNull CompletableObserver observer) Subscribes the givenCompletableObserverto thisCompletableSourceinstance.
-
Method Details
-
subscribe
Subscribes the givenCompletableObserverto thisCompletableSourceinstance.- Parameters:
observer- theCompletableObserver, notnull- Throws:
NullPointerException- ifobserverisnull
-