@@ -34,13 +34,13 @@ var (
34
34
}
35
35
)
36
36
37
- func CreateSubWorkflowInstance [TResult any ](ctx sync. Context , options SubWorkflowOptions , workflow interface {}, args ... interface {}) Future [TResult ] {
38
- return WithRetries (ctx , options .RetryOptions , func (ctx sync. Context , attempt int ) Future [TResult ] {
37
+ func CreateSubWorkflowInstance [TResult any ](ctx Context , options SubWorkflowOptions , workflow interface {}, args ... interface {}) Future [TResult ] {
38
+ return WithRetries (ctx , options .RetryOptions , func (ctx Context , attempt int ) Future [TResult ] {
39
39
return createSubWorkflowInstance [TResult ](ctx , options , attempt , workflow , args ... )
40
40
})
41
41
}
42
42
43
- func createSubWorkflowInstance [TResult any ](ctx sync. Context , options SubWorkflowOptions , attempt int , wf interface {}, args ... interface {}) Future [TResult ] {
43
+ func createSubWorkflowInstance [TResult any ](ctx Context , options SubWorkflowOptions , attempt int , wf interface {}, args ... interface {}) Future [TResult ] {
44
44
f := sync .NewFuture [TResult ]()
45
45
46
46
// If the context is already canceled, return immediately.
@@ -105,7 +105,7 @@ func createSubWorkflowInstance[TResult any](ctx sync.Context, options SubWorkflo
105
105
if fi , ok := f .(sync.FutureInternal [TResult ]); ok {
106
106
if ! fi .Ready () {
107
107
wfState .RemoveFuture (scheduleEventID )
108
- f .Set (* new (TResult ), sync . Canceled )
108
+ f .Set (* new (TResult ), Canceled )
109
109
}
110
110
}
111
111
}
0 commit comments