Skip to content

Commit 2dc05bf

Browse files
authored
Update timers documentation for clarity
Clarified the description of the timer functionality and usage in workflows.
1 parent 67e48cd commit 2dc05bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/features/timers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import TimerSimulator from '@site/src/components/TimerSimulator';
66

77
# Timers
88

9-
Workflow provides the ability to suspend the execution of a workflow and resume at a later time. These are durable timers, meaning they survive restarts and failures while remaining consistent with workflow replay semantics. This can be useful for implementing delays, retry logic, or timeouts.
9+
The framework provides the ability to suspend the execution of a workflow and resume at a later time. These are durable timers, meaning they survive restarts and failures while remaining consistent with workflow replay semantics. This can be useful for implementing delays, retry logic, or timeouts.
1010

1111
To use timers, you can use the `timer($duration)` helper function within your workflow. This method returns a `Promise` that will be resolved after the specified duration has passed.
1212

@@ -29,7 +29,7 @@ class MyWorkflow extends Workflow
2929

3030
<TimerSimulator />
3131

32-
You can specify the `$duration` as an integer number of seconds or as a string e.g. '5 seconds', '30 minutes' or even '3 days'. Workflow can handle any duration.
32+
You can specify the `$duration` as an integer number of seconds or as a string e.g. '5 seconds', '30 minutes' or even '3 days'. It can handle any duration.
3333

3434
**Important:** Inside of a workflow, never use `Carbon::now()` or Laravel's `now()` to get the current time. Instead, use `Workflow\now()`, which returns the current time as seen by the workflow system. This is crucial because the actual time may not match your application's system clock.
3535

0 commit comments

Comments
 (0)