rafidka/adawat

Support methods with @stateful decorator

Opened this issue · 0 comments

It is useful to be able to have the @stateful decorator work with functions as well. For example:

@stateful
def my_expensive_method(arg1, arg2):
    # Implementation

The __name__ attribute along with the positional and keyword arguments can be used to generate a signature, and the return value of the function is stored in the file.