Decorator bug
mahnerak opened this issue · 1 comments
mahnerak commented
#decorator
class background:
def __init__(self,max_prefetch=1):
self.max_prefetch = max_prefetch
def __call__(self,gen):
def bg_generator(*args,**kwargs):
return BackgroundGenerator(gen(*args,**kwargs))
return bg_generator
Decorator never works! max_prefetch is never passed to BackgroundGenerator
justheuristic commented
Thank you! i am sorry it took me so long to notice your issue :( Will fix right away