Interactive Extensions
Interactive Extensions
Ix-Main Namespaces
System.Linq
AsyncEnumerable Class
AsyncEnumerable Methods
ToAsyncEnumerable Method
ToAsyncEnumerable(TSource) Method (IEnumerable(TSource))
ToAsyncEnumerable(TSource) Method (IObservable(TSource))
ToAsyncEnumerable(TSource) Method (Task(TSource))
AsyncEnumerable
ToAsyncEnumerable
TSource
Method (Task
TSource
)
Namespace:
System.Linq
Assembly:
System.Interactive.Async (in System.Interactive.Async.dll) Version: 1.2.0.0
Syntax
C#
Copy
public
static
IAsyncEnumerable
<TSource>
ToAsyncEnumerable
<TSource>(
this
Task
<TSource>
task
)
Parameters
task
Type:
System.Threading.Tasks
Task
TSource
Type Parameters
TSource
Return Value
Type:
IAsyncEnumerable
TSource
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Task
TSource
. 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)
.
See Also
Reference
AsyncEnumerable Class
ToAsyncEnumerable Overload
System.Linq Namespace