megengine.hub.fetcher.synchronized#

synchronized(func)[源代码]#

装饰器。结束后,装饰后的函数会被同步。实际应用上,我们用它来防止hub.load期间的数据竞争