Skip to content

Class EnumerableExtensions

Namespace: Void.Proxy.Api.Extensions
Assembly: Void.Proxy.Api.dll

public static class EnumerableExtensions

Inheritance

objectEnumerableExtensions

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Methods

Synchronized<T>(IEnumerable<T>, AsyncLock, CancellationToken)

public static IEnumerable<T> Synchronized<T>(this IEnumerable<T> source, AsyncLock @lock, CancellationToken cancellationToken)

Parameters

source IEnumerable<T>

lock AsyncLock

cancellationToken CancellationToken

Returns

IEnumerable<T>

Type Parameters

T

SynchronizedAsync<T>(IEnumerable<T>, AsyncLock, CancellationToken)

public static IAsyncEnumerable<T> SynchronizedAsync<T>(this IEnumerable<T> source, AsyncLock @lock, CancellationToken cancellationToken)

Parameters

source IEnumerable<T>

lock AsyncLock

cancellationToken CancellationToken

Returns

IAsyncEnumerable<T>

Type Parameters

T