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 TypeMethodDescriptionvoidcancel()Causes theTask.Subscriberto (eventually) stop receiving items from aTask.Coordinator.Obtains theTask.Coordinatorto which theTask.Subscriberis subscribed.
-
Method Details
-
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
-