def syncitall(list_accounts, config):
 threads = threadutil.accountThreads()
 for accountname in list_accounts:
  account = accounts.SyncableAccount(config, accountname)
  thread = threadutil.InstanceLimitedThread(ACCOUNT_LIMITED_THREAD_NAME, target=account.syncrunner, name=('Account sync %s' % accountname))
  thread.setDaemon(True)
  thread.start()
  threads.add(thread)
 threads.wait()

def syncitall ( list_accounts , config ) : threads = threadutil . accountThreads ( ) for accountname in list_accounts : account = accounts . SyncableAccount ( config , accountname ) thread = threadutil . InstanceLimitedThread ( ACCOUNT_LIMITED_THREAD_NAME , target = account . syncrunner , name = ( 'Account sync %s' % accountname ) ) thread . setDaemon ( True ) thread . start ( ) threads . add ( thread ) threads . wait ( )
the target when in multithreading mode for running accounts threads .