File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
temporal-sdk/src/main/java/io/temporal/workflow Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 23
23
import java .lang .reflect .Type ;
24
24
25
25
/**
26
- * ActivityStub is used to call an activity without referencing an interface it implements. This is
27
- * useful to call activities when their type is not known at compile time or to execute activities
26
+ * ActivityStub is used to call an activity without referencing the interface that it implements. This is
27
+ * useful for calling activities when their type is not known at compile time, or for executing activities
28
28
* implemented in other languages. Created through {@link Workflow#newActivityStub(Class)}.
29
29
*/
30
30
public interface ActivityStub {
31
31
32
32
/**
33
- * Executes an activity by its type name and arguments. Blocks until the activity completion.
33
+ * Executes an activity by its type name and arguments. Blocks until activity completion.
34
34
*
35
35
* @param activityName name of an activity type to execute.
36
36
* @param resultClass the expected return type of the activity. Use Void.class for activities that
@@ -42,7 +42,7 @@ public interface ActivityStub {
42
42
<R > R execute (String activityName , Class <R > resultClass , Object ... args );
43
43
44
44
/**
45
- * Executes an activity by its type name and arguments. Blocks until the activity completion.
45
+ * Executes an activity by its type name and arguments. Blocks until activity completion.
46
46
*
47
47
* @param activityName name of an activity type to execute.
48
48
* @param resultClass the expected return class of the activity. Use Void.class for activities
Original file line number Diff line number Diff line change 29
29
public final class Async {
30
30
31
31
/**
32
- * Invokes zero argument function asynchronously.
32
+ * Invokes a zero- argument function asynchronously.
33
33
*
34
34
* @param function Function to execute asynchronously
35
35
* @return promise that contains function result or failure
@@ -39,7 +39,7 @@ public static <R> Promise<R> function(Functions.Func<R> function) {
39
39
}
40
40
41
41
/**
42
- * Invokes one argument function asynchronously.
42
+ * Invokes a one- argument function asynchronously.
43
43
*
44
44
* @param function Function to execute asynchronously
45
45
* @param arg1 first function argument
You can’t perform that action at this time.
0 commit comments