Skip to content

Commit 88f7b32

Browse files
Update impl/README.md
Co-authored-by: Ricardo Zanini <[email protected]>
1 parent cf2c693 commit 88f7b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impl/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Once we have the application object, we use it to parse our definition examples.
155155
appl.workflowDefinition(WorkflowReader.readWorkflowFromClasspath("emit.yaml"));
156156
```
157157

158-
A [WorkflowDefinition](core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinition.java) object is immutable and therefore thread safe. It is used to execute as many workflow instances as desired.
158+
A [WorkflowDefinition](core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinition.java) object is immutable and, therefore, thread-safe. It is used to execute as many workflow instances as desired.
159159

160160
To execute a workflow, we first create a [WorkflowInstance](core/src/main/java/io/serverlessworkflow/impl/WorkflowInstance.java) object (its initial status is PENDING) and then invoke the `start` method on it (its status is changed to RUNNING). The `start` method returns a [CompletableFuture](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html), which we use to indicate that a log message should be printed when the workflow is completed.
161161

0 commit comments

Comments
 (0)