I am trying to pass arguments to run_in_executor
like so:
loop.run_in_executor(None, update_contacts, data={
'email': email,
'access_token': g.tokens['access_token']
})
However, I get the following error:
run_in_executor() got an unexpected keyword argument 'data'
Is there a generic way to pass args to this function?