mirror of
https://github.com/wassname/cachier.git
synced 2026-09-09 11:19:08 +08:00
correct wait_calc
This commit is contained in:
+1
-1
@@ -479,7 +479,7 @@ def cachier(stale_after=None, next_time=False, pickle_reload=True,
|
||||
core.mark_entry_not_calculated(key)
|
||||
# print('And it is fresh!')
|
||||
return entry['value']
|
||||
if entry['being_calculated']:
|
||||
if entry['being_calculated'] and wait_calc:
|
||||
# print('No value but already being calculated. Waiting.')
|
||||
return core.wait_on_entry_calc(key)
|
||||
# core.mark_entry_being_calculated(key)
|
||||
|
||||
Reference in New Issue
Block a user