The activity has failed, with exception exc
.
The activity is running with a current value of t
.
An ADT describing the state of an Activity.
The activity is pending output.
Create a new pending activity.
Create a new pending activity. The activity's state is updated by the given witness.
A Java friendly method for Activity.collect()
.
[use case] Collect a collection of activities into an activity of a collection of values.
Create a new static activity with exception exc
.
Create an activity backed by a com.twitter.util.Future.
Create an activity backed by a com.twitter.util.Future.
The resultant Activity
is pending until the original Future
is
satisfied. Future
success or failure corresponds to the expected
Activity.Ok
or Activity.Failed
result.
Closure of observations of the run
Var
of the resultant Activity
is
not propagated to the original Future
. That is to say, invoking
close()
on observations of Activity.run
will not result in the
cancellation of the original Future
.
A static Activity that is pending.
Sample given Activity
.
Create a new static activity with value v
.
Note: There is a Java-friendly API for this object: com.twitter.util.Activities.