Skip to content

Commit ae9b369

Browse files
committed
update document
1 parent a770e50 commit ae9b369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x/batch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import (
55
"go.uber.org/cadence/workflow"
66
)
77

8-
// Executor is a interface that allows to add futures to an executor and execute them in batch
8+
// BatchFuture is a interface that extends workflow.Future and adds a method to get the futures created
99
type BatchFuture interface {
1010
workflow.Future
1111
GetFutures() []workflow.Future
1212
}
1313

14-
// NewBatchExecutor creates a new batch executor
14+
// NewBatchFuture creates a new batch future
1515
func NewBatchFuture(ctx workflow.Context, batchSize int, factories []func(ctx workflow.Context) workflow.Future) (BatchFuture, error) {
1616
return batch.NewBatchFuture(ctx, batchSize, factories)
1717
}

0 commit comments

Comments
 (0)