decMaxCalls

Only invokes the decorated function as long as it's called <= n times.
Subsequent calls to the decorated function return the result of the last invocation.

Look at maxCalls for the non-decorator version.

Requires the experimentalDecorators flag to be set.

Example