LINQExtensionsWithCancellationT Method
Namespace: PCBI_API_Extensions.ExtensionsAssembly: PCBI.API_Library (in PCBI.API_Library.dll) Version: 17.0.0.0 (17.0.0.0)
public static IEnumerable<T> WithCancellation<T>(
this IEnumerable<T> en,
CancellationToken token
)
<ExtensionAttribute>
Public Shared Function WithCancellation(Of T) (
en As IEnumerable(Of T),
token As CancellationToken
) As IEnumerable(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static IEnumerable<T>^ WithCancellation(
IEnumerable<T>^ en,
CancellationToken token
)
[<ExtensionAttribute>]
static member WithCancellation :
en : IEnumerable<'T> *
token : CancellationToken -> IEnumerable<'T>
- en IEnumerableT
-
- token CancellationToken
-
- T
IEnumerableTIn Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).