You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
registry.resolve() can now be used to resolve functions that have not been registered. #13
asyncdefone():
return1asyncdeftwo():
return2registry=Registry(one, two)
asyncdefthree(one, two):
returnone+tworesult=awaitregistry.resolve(three)
# result is now 3
Adrian Garcia Badaracco addressed an issue where concurrent functions were not executing optimally. The code now starts a function running as soon as all of its dependent functions have completed. #10
This library no longer uses subclasses. Instead, a Registry() object is created and async def functions are registered with that registry. The registry.resolve(fn) method is then used to execute functions with their dependencies. #8
Registry(timer=callable) can now be used to register a function to record the times taken to execute each function. This callable will be passed three arguments - the function name, the start time and the end time. #7
The parallel=True argument to the Registry() constructor can be switched to False to disable parallel execution - useful for running benchmarks to understand the performance benefit of running functions in parallel. #6