Interface Task.Subscription<T>
-
- Type Parameters:
T- the type of result received by theTask.Subscriber
public static interface Task.Subscription<T>Represents a subscription aTask.Subscriberhas made to aTask.Coordinator, allowing control and termination of theTask.Subscription.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel()Causes theTask.Subscriberto (eventually) stop receiving items from aTask.Coordinator.Task.Coordinator<T>getCoordinator()Obtains theTask.Coordinatorto which theTask.Subscriberis subscribed.
-
-
-
Method Detail
-
cancel
void cancel()
Causes theTask.Subscriberto (eventually) stop receiving items from aTask.Coordinator.
-
getCoordinator
Task.Coordinator<T> getCoordinator()
Obtains theTask.Coordinatorto which theTask.Subscriberis subscribed.- Returns:
- the
Task.Coordinator
-
-