I imagine this is a fairly simple thing to figure ...
# ask-community
p
I imagine this is a fairly simple thing to figure out, but I'm not seeing it in the docs. If I have a task that takes 2 parameters, but also needs to wait until the completion of a task that doesn't return anything, how I do signal that dependency?
Copy code
with Flow as f:
   x, y = func_1():
   no_return_func():
   res = final_func(x,y)
Using the example above, how do I signal for
final_func
to wait on
no_return_func
? Do I just add a third argument to the function and have
no_return_func
return
True
? Or is there a cleaner way?
j
Basicly;
Copy code
.set_upstream
🙏 1
p
Cool, so it's a no go in the functional api?
d
They don't need to return anything, but a task would in theory always return something, check this
1
z
The functional/imperative API can be mixed so it's okay if it's a no-go in the functional API generally