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 interface
ACompletableSource.Processor
represents a processing stage that is both aCompletableSource
and aCompletableSource.Subscriber
and obeys the contracts of both.static interface
Subscriber of the outcome of aCancellable
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
subscribe
(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:
-