Skip to content

Commit

Permalink
Reflow text
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Sep 7, 2024
1 parent cf9a0ee commit 52e6d62
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
22 changes: 11 additions & 11 deletions internal/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -1987,17 +1987,17 @@ func (wc *workflowEnvironmentInterceptor) SetQueryHandlerWithOptions(
return setQueryHandler(ctx, queryType, handler, options)
}

// SetUpdateHandler binds an update handler function to the specified
// name such that update invocations specifying that name will invoke the
// handler. The handler function can take as input any number of parameters so
// long as they can be serialized/deserialized by the system. The handler must
// take a workflow.Context as its first parameter. The
// update handler must return either a single error or a single serializable
// object along with a single error. The update handler function is invoked in
// the context of the workflow and thus is subject to the same restrictions as
// workflow code, namely, the update handler must be deterministic. As with
// other workflow code, update code is free to invoke and wait on the results of
// activities. Update handler code is free to mutate workflow state.
// SetUpdateHandler binds an update handler function to the specified name such
// that update invocations specifying that name will invoke the handler. The
// handler function can take as input any number of parameters so long as they
// can be serialized/deserialized by the system. The handler must take a
// workflow.Context as its first parameter. The update handler must return
// either a single error or a single serializable object along with a single
// error. The update handler function is invoked in the context of the workflow
// and thus is subject to the same restrictions as workflow code, namely, the
// update handler must be deterministic. As with other workflow code, update
// code is free to invoke and wait on the results of activities. Update handler
// code is free to mutate workflow state.
//
// This registration can optionally specify (through UpdateHandlerOptions) an
// update validation function. If provided, this function will be invoked before
Expand Down
14 changes: 7 additions & 7 deletions workflow/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,13 @@ func SetUpdateHandler(ctx Context, updateName string, handler interface{}) error
// name such that update invocations specifying that name will invoke the
// handler. The handler function can take as input any number of parameters so
// long as they can be serialized/deserialized by the system. The handler must
// take a [workflow.Context] as its first parameter. The
// update handler must return either a single error or a single serializable
// object along with a single error. The update handler function is invoked in
// the context of the workflow and thus is subject to the same restrictions as
// workflow code, namely, the update handler must be deterministic. As with
// other workflow code, update code is free to invoke and wait on the results of
// activities. Update handler code is free to mutate workflow state.
// take a [workflow.Context] as its first parameter. The update handler must
// return either a single error or a single serializable object along with a
// single error. The update handler function is invoked in the context of the
// workflow and thus is subject to the same restrictions as workflow code,
// namely, the update handler must be deterministic. As with other workflow
// code, update code is free to invoke and wait on the results of activities.
// Update handler code is free to mutate workflow state.
//
// This registration can optionally specify (through UpdateHandlerOptions) an
// update validation function. If provided, this function will be invoked before
Expand Down

0 comments on commit 52e6d62

Please sign in to comment.