diff options
Diffstat (limited to 'Ix/NET/System.Interactive.Async/IAsyncEnumerable.cs')
-rw-r--r-- | Ix/NET/System.Interactive.Async/IAsyncEnumerable.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Ix/NET/System.Interactive.Async/IAsyncEnumerable.cs b/Ix/NET/System.Interactive.Async/IAsyncEnumerable.cs new file mode 100644 index 0000000..8d892e1 --- /dev/null +++ b/Ix/NET/System.Interactive.Async/IAsyncEnumerable.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. +using System; + +namespace System.Collections.Generic +{ + /// <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> + public interface IAsyncEnumerable< +#if DESKTOPCLR40 || SILVERLIGHT4 + out +#endif + T> + { + /// <summary> + /// Gets an asynchronous enumerator over the sequence. + /// </summary> + /// <returns>Enumerator for asynchronous enumeration over the sequence.</returns> + IAsyncEnumerator<T> GetEnumerator(); + } +} |