We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf0cb9d commit dfdc413Copy full SHA for dfdc413
1 file changed
pipe/pipeline.go
@@ -182,6 +182,10 @@ func WithEventHandler(handler func(e *Event)) Option {
182
// WithStagePanicHandler sets a panic handler for the stages within a pipeline.
183
// When a pipeline stage panics, the provided handler will be invoked, allowing
184
// the client to handle the panic in whatever way they see fit.
185
+//
186
+// Note:
187
+// - The client is responsible for deciding whether to recover from the panic or panicking again.
188
+// - If a panic handler is not set, the panic will be propagated normally.
189
func WithStagePanicHandler(ph StagePanicHandler) Option {
190
return func(p *Pipeline) {
191
p.panicHandler = ph
0 commit comments