Package io.servicetalk.concurrent
Interface CompletableSource
- All Known Subinterfaces:
CompletableSource.Processor
- All Known Implementing Classes:
NettyFutureCompletable,SubscribableCompletable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An asynchronous computation that does not emit any data. It just completes or emits an error.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceACompletableSource.Processorrepresents a processing stage that is both aCompletableSourceand aCompletableSource.Subscriberand obeys the contracts of both.static interfaceSubscriber of the outcome of aCancellable. -
Method Summary
Modifier and TypeMethodDescriptionvoidsubscribe(CompletableSource.Subscriber subscriber) Subscribes to the outcome of thisCompletableSource.
-
Method Details
-
subscribe
Subscribes to the outcome of thisCompletableSource.- Parameters:
subscriber- of the outcome.- See Also:
-