##// END OF EJS Templates
add ownership to AsyncResult objects...
add ownership to AsyncResult objects An AsyncResult with owner=True will pop results and metadata, instead of get. This should result is reduced memory growth on the Client. AsyncResults created by apply, get_result, etc. have owner=True, so this should help most cases.

File last commit:

r15516:43a46eb6
r16739:c8297258
Show More
test_decorators.py
9 lines | 170 B | text/x-python | PythonLexer
from IPython.utils import decorators
def test_flag_calls():
@decorators.flag_calls
def f():
pass
assert not f.called
f()
assert f.called