This method of the ComLib Class marshals to the context bound to the supplied object and executes the run() method of the supplied object that implements Runnable.
public static native void executeOnContext(Object objectWithContext, Runnable runnable);
objectWithContext | Object used to identify context to run on. |
runnable | Task to execute when in the appropriate context. |
This method was added as of versions 2437 through 2925 of the Microsoft virtual machine.