Skip to content

Commit f80240f

Browse files
committed
Rename workflow Schedule to Start
Signed-off-by: joshvanl <[email protected]>
1 parent f612c96 commit f80240f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

workflow/client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ func (c *Client) StartWorker(ctx context.Context, r *TaskRegistry) error {
3030
return c.thgc.StartWorkItemListener(ctx, r.registry)
3131
}
3232

33-
// ScheduleNewWorkflow schedules a new workflow instance with a specified set
34-
// of options for execution.
35-
func (c *Client) ScheduleNewWorkflow(ctx context.Context, orchestrator string, opts ...NewWorkflowOptions) (string, error) {
33+
// StartWorkflow schedules a new workflow instance with a specified set of
34+
// options for execution.
35+
func (c *Client) StartWorkflow(ctx context.Context, orchestrator string, opts ...NewWorkflowOptions) (string, error) {
3636
oopts := make([]api.NewOrchestrationOptions, len(opts))
3737
for i, o := range opts {
3838
oopts[i] = api.NewOrchestrationOptions(o)

0 commit comments

Comments
 (0)