Created
August 12, 2013 20:17
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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