File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ func (w *WorkflowContext) CreateTimer(delay time.Duration, opts ...CreateTimerOp
74
74
return w .oc .CreateTimer (delay , oopts ... )
75
75
}
76
76
77
- // WaitForSingleEvent creates a task that is completed only after an event
78
- // named [eventName] is received by this workflow or when the specified
79
- // timeout expires.
77
+ // WaitForExternalEvent creates a task that is completed only after an event
78
+ // named [eventName] is received by this workflow or when the specified timeout
79
+ // expires.
80
80
//
81
81
// The [timeout] parameter can be used to define a timeout for receiving the
82
82
// event. If the timeout expires before the named event is received, the task
@@ -91,7 +91,7 @@ func (w *WorkflowContext) CreateTimer(delay time.Duration, opts ...CreateTimerOp
91
91
// workflow will complete just one task returned by this method.
92
92
//
93
93
// Note that event names are case-insensitive.
94
- func (w * WorkflowContext ) WaitForSingleEvent (eventName string , timeout time.Duration ) Task {
94
+ func (w * WorkflowContext ) WaitForExternalEvent (eventName string , timeout time.Duration ) Task {
95
95
return w .oc .WaitForSingleEvent (eventName , timeout )
96
96
}
97
97
You can’t perform that action at this time.
0 commit comments