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.Subscriber
has made to aTask.Coordinator
, allowing control and termination of theTask.Subscription
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancel()
Causes theTask.Subscriber
to (eventually) stop receiving items from aTask.Coordinator
.Task.Coordinator<T>
getCoordinator()
Obtains theTask.Coordinator
to which theTask.Subscriber
is subscribed.
-
-
-
Method Detail
-
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
-
-