/
IAsyncEnumerable.cs
31 lines (28 loc) · 1.03 KB
/
IAsyncEnumerable.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#if !NATIVE_ASYNC
using System.Threading;
namespace LinqToDB.Async
{
///// <summary>
///// Asynchronous version of the IEnumerable<T> interface, allowing elements of the
///// enumerable sequence to be retrieved asynchronously.
///// </summary>
///// <typeparam name="T">Element type.</typeparam>
//[PublicAPI]
/// <summary>
/// This API supports the LinqToDB infrastructure and is not intended to be used directly from your code.
/// This API may change or be removed in future releases.
/// </summary>
public interface IAsyncEnumerable<out T>
{
///// <summary>
///// Gets an asynchronous enumerator over the sequence.
///// </summary>
///// <returns>Enumerator for asynchronous enumeration over the sequence.</returns>
/// <summary>
/// This API supports the LinqToDB infrastructure and is not intended to be used directly from your code.
/// This API may change or be removed in future releases.
/// </summary>
IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default);
}
}
#endif