Skip to content

Commit db30df7

Browse files
committed
Fix WaitForExternalEvent
Signed-off-by: joshvanl <[email protected]>
1 parent 3ddbd4f commit db30df7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

workflow/workflow.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ func (w *WorkflowContext) CreateTimer(delay time.Duration, opts ...CreateTimerOp
7474
return w.oc.CreateTimer(delay, oopts...)
7575
}
7676

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.
8080
//
8181
// The [timeout] parameter can be used to define a timeout for receiving the
8282
// 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
9191
// workflow will complete just one task returned by this method.
9292
//
9393
// 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 {
9595
return w.oc.WaitForSingleEvent(eventName, timeout)
9696
}
9797

0 commit comments

Comments
 (0)