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 2323import java .lang .reflect .Type ;
2424
2525/**
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
2828 * implemented in other languages. Created through {@link Workflow#newActivityStub(Class)}.
2929 */
3030public interface ActivityStub {
3131
3232 /**
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.
3434 *
3535 * @param activityName name of an activity type to execute.
3636 * @param resultClass the expected return type of the activity. Use Void.class for activities that
@@ -42,7 +42,7 @@ public interface ActivityStub {
4242 <R > R execute (String activityName , Class <R > resultClass , Object ... args );
4343
4444 /**
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.
4646 *
4747 * @param activityName name of an activity type to execute.
4848 * @param resultClass the expected return class of the activity. Use Void.class for activities
Original file line number Diff line number Diff line change 2929public final class Async {
3030
3131 /**
32- * Invokes zero argument function asynchronously.
32+ * Invokes a zero- argument function asynchronously.
3333 *
3434 * @param function Function to execute asynchronously
3535 * @return promise that contains function result or failure
@@ -39,7 +39,7 @@ public static <R> Promise<R> function(Functions.Func<R> function) {
3939 }
4040
4141 /**
42- * Invokes one argument function asynchronously.
42+ * Invokes a one- argument function asynchronously.
4343 *
4444 * @param function Function to execute asynchronously
4545 * @param arg1 first function argument
You can’t perform that action at this time.
0 commit comments