Skip to content

Commit

Permalink
clarify it's the listener, not the func itself that's called concurre…
Browse files Browse the repository at this point in the history
…ntly
  • Loading branch information
yuandrew committed Feb 11, 2025
1 parent faeacbf commit e482e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/workflow_testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func (t *TestActivityEnvironment) SetWorkerStopChannel(c chan struct{}) {
// SetOnActivityHeartbeatListener sets a listener that will be called when
// activity heartbeat is called. ActivityInfo is defined in internal package,
// use public type activity.Info instead.
// Note: SetOnActivityHeartbeatListener may be called concurrently.
// Note: The provided listener may be called concurrently.
//
// Note: Due to internal caching by the activity system, this may not get called
// for every heartbeat recorded. This is only called when the heartbeat would be
Expand Down Expand Up @@ -935,7 +935,7 @@ func (e *TestWorkflowEnvironment) SetOnActivityCanceledListener(

// SetOnActivityHeartbeatListener sets a listener that will be called when activity heartbeat.
// Note: ActivityInfo is defined in internal package, use public type activity.Info instead.
// Note: SetOnActivityHeartbeatListener may be called concurrently.
// Note: The provided listener may be called concurrently.
//
// Note: Due to internal caching by the activity system, this may not get called
// for every heartbeat recorded. This is only called when the heartbeat would be
Expand Down

0 comments on commit e482e34

Please sign in to comment.