sematic icon indicating copy to clipboard operation
sematic copied to clipboard

Unreturned futures should be executed

Open neutralino1 opened this issue 2 years ago • 0 comments

When I do this

@sematic.func
def foo() -> T:
    ...

@sematic.func
def bar() -> U:
    foo()
    ...

I expect foo to be resolved as part of graph. Currently it is not resolved because it is neither returned by bar, nor passed as an input to another Sematic Function.

We can solve this by having a global future registry that futures add themselves to upon instantiation.

neutralino1 avatar Jul 01 '22 19:07 neutralino1