public ServiceFuture<Void> cancelAsync(String resourceGroupName, String registryName, String runId, final ServiceCallback<Void> serviceCallback) {
        return ServiceFuture.fromResponse(cancelWithServiceResponseAsync(resourceGroupName, registryName, runId), serviceCallback);
    }
public ServiceFuture < Void > cancelAsync ( String resourceGroupName , String registryName , String runId , final ServiceCallback < Void > serviceCallback ) { return ServiceFuture . fromResponse ( cancelWithServiceResponseAsync ( resourceGroupName , registryName , runId ) , serviceCallback ) ; }
Cancel an existing run.

@param resourceGroupName The name of the resource group to which the container registry belongs.
@param registryName The name of the container registry.
@param runId The run ID.
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object