Interface Task.Subscription<T>
- Type Parameters:
T
- the type of result received by theTask.Subscriber
public static interface Task.Subscription<T>
Represents a subscription a
Task.Subscriber
has made to a Task.Coordinator
,
allowing control and termination of the Task.Subscription
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Causes theTask.Subscriber
to (eventually) stop receiving items from aTask.Coordinator
.Obtains theTask.Coordinator
to which theTask.Subscriber
is subscribed.
-
Method Details
-
cancel
void cancel()Causes theTask.Subscriber
to (eventually) stop receiving items from aTask.Coordinator
. -
getCoordinator
Task.Coordinator<T> getCoordinator()Obtains theTask.Coordinator
to which theTask.Subscriber
is subscribed.- Returns:
- the
Task.Coordinator
-