youknowone/ring

Action trigger like `f.run('execute')`

Closed this issue · 1 comments

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)

#34 로 수정됐습니다!