megengine.hub.fetcher.synchronized

synchronized(func)[source]

Decorator. Decorated function will synchronize when finished. Specifically, we use this to prevent data race during hub.load