Skip to content

Commit 76bd5fd

Browse files
authored
Enhance explanation of side effects in documentation
Clarified the definition of side effects in workflows.
1 parent 1f92f49 commit 76bd5fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/features/side-effects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 6
44

55
# Side Effects
66

7-
A side effect is a closure containing non-deterministic code. The closure is only executed once and the result is saved. It will not execute again if the workflow is retried. Instead, it will return the saved result.
7+
A side effect is a closure containing non-deterministic code. The closure is only executed once and the result is saved. It will not execute again if the workflow is retried. Instead, it will return the saved result. This makes the workflow deterministic because replaying the workflow will always return the same stored value rather than re-running the non-deterministic code.
88

99
```php
1010
use Workflow\Workflow;

0 commit comments

Comments
 (0)