Skip to content

Commit 41c20c0

Browse files
committed
edits
1 parent 1000926 commit 41c20c0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

temporal-sdk/src/main/java/io/temporal/workflow/ActivityStub.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
import 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
*/
3030
public 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

temporal-sdk/src/main/java/io/temporal/workflow/Async.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public 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

0 commit comments

Comments
 (0)