Skip to content

Commit 4647213

Browse files
committed
make SideEffect usable outside of repo
1 parent 7656f35 commit 4647213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workflow/sideeffect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/cschleiden/go-workflows/internal/workflowstate"
88
)
99

10-
func SideEffect[TResult any](ctx sync.Context, f func(ctx sync.Context) TResult) Future[TResult] {
10+
func SideEffect[TResult any](ctx Context, f func(ctx Context) TResult) Future[TResult] {
1111
future := sync.NewFuture[TResult]()
1212

1313
if ctx.Err() != nil {

0 commit comments

Comments
 (0)