Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions workflow/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type ExecutorBinding struct {

// SharedInstance reports whether [NewExecutorFunc] returns a shared executor
// instance rather than creating an independent instance for each session.
// Shared instances participate in workflow reset checks through [Reset]. Keep
// Shared instances participate in workflow reset checks through [ExecutorBinding.TryReset]. Keep
// this value consistent with [NewExecutorFunc]; setting it to false for a
// shared executor opts out of reset checks.
SharedInstance bool
Expand Down Expand Up @@ -84,7 +84,7 @@ func (eb ExecutorBinding) isPlaceholder() bool {

// TryReset resets this binding if it wraps a shared executor instance.
// Non-shared bindings are already isolated per session and therefore report
// success without invoking [ExecutorBinding.Reset].
// success without invoking [ExecutorBinding.TryReset].
func (eb ExecutorBinding) TryReset() bool {
if !eb.SharedInstance {
// Non-shared instances do not need resetting
Expand Down
Loading