Skip to content

Commit

Permalink
Clarified description of workflow.Now (#1430)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwheeler authored Apr 4, 2024
1 parent 00fd4cd commit 0cfdccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/deterministic_wrappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func NewFuture(ctx Context) (Future, Settable) {
return internal.NewFuture(ctx)
}

// Now returns the current time when the workflow task is started or replayed.
// Now returns the time when the workflow task was first started, even during replay.
// Workflows must use this Now() to get the wall clock time, instead of Go's time.Now().
func Now(ctx Context) time.Time {
return internal.Now(ctx)
Expand Down

0 comments on commit 0cfdccb

Please sign in to comment.