File: MLContextExtensions.cs
Web Access
Project: src\src\Microsoft.ML.Experimental\Microsoft.ML.Experimental.csproj (Microsoft.ML.Experimental)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
namespace Microsoft.ML.Experimental
{
    public static class MLContextExtensions
    {
        /// <summary>
        /// Stop the execution of pipeline in <see cref="MLContext"/>
        /// </summary>
        /// <param name="ctx"><see cref="MLContext"/> reference.</param>
        public static void CancelExecution(this MLContext ctx) => ctx.CancelExecution();
    }
}