Action trigger like `f.run('execute')`
Closed this issue · 1 comments
youknowone commented
For now,
@ring.func.dict({})
def f():
return ...
f() # ok this is default
f.execute() # ok this is explicit executing
# but make a wrapper
def w():
return f()
# and now controlling f out of w is not easy
Suggestion: there must be an action trigger like run
def w():
return f() # ok
def w(*, action='get_or_update'):
return f.run(action)