Skip to content

Commit 1b643be

Browse files
fjtiradogmunozfe
andauthored
Update impl/README.md
Co-authored-by: Gonzalo Muñoz <[email protected]>
1 parent a059965 commit 1b643be

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
@@ -141,7 +141,7 @@ Here is a summary of what we are trying to do: We will start the `listen.yaml` w
141141
142142
The first step is to create a [WorkflowApplication](core/src/main/java/io/serverlessworkflow/impl/WorkflowApplication.java) instance. An application is an abstraction that allows customization of different aspects of the workflow execution (for example, change the default `ExecutorService` for thread spawning)
143143
144-
Since `WorkflowApplication` implements `Autocloseable`, we better use a try...finally block, ensuring any resource that the workflow might have used is freed when done.
144+
Since `WorkflowApplication` implements `Autocloseable`, we better use a **try-with-resources** block, ensuring any resource that the workflow might have used is freed when done.
145145
146146
`try (WorkflowApplication appl = WorkflowApplication.builder().build())`
147147

0 commit comments

Comments
 (0)