Skip to content

Commit a2f5b03

Browse files
committed
Update docs
1 parent 43e6640 commit a2f5b03

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/source/includes/_guide.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ You can schedule timers to fire at any point in the future by calling `workflow.
248248
All timers must have either fired or been canceled before a workflow can complete. If the workflow function exits with pending timer futures an error will be returned.
249249
</aside>
250250

251+
```go
252+
t := workflow.ScheduleTimer(ctx, 2*time.Second, workflow.WithTimerName("my-timer"))
253+
```
254+
255+
You can optionally name timers for tracing and debugging purposes.
256+
251257
### Canceling timers
252258

253259
```go

0 commit comments

Comments
 (0)