Skip to content

Instantly share code, notes, and snippets.

@mudgen
Created August 12, 2013 20:17
Show Gist options
  • Select an option

  • Save mudgen/6214721 to your computer and use it in GitHub Desktop.

Select an option

Save mudgen/6214721 to your computer and use it in GitHub Desktop.
Version of system.util.invokeAsynchronous() with arguments that get passed to the function.
def func(arg1,arg2):
print arg1,arg2
def invokeAsynchWithArgs(func,*args):
def asynchFunc(args=args,func=func):
func(*args)
system.util.invokeAsynchronous(asynchFunc)
invokeAsynchWithArgs(func, "cat","bat")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment