Invoke a function asynchronously (deprecated)

For asynchronous function invocation, use Invoke with InvocationType set to Event. This API is deprecated. Invokes a function asynchronously.