AwaitableFromSource<TSource,TItem> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a IAwaitable<T> from source passed to constructor.
public sealed class AwaitableFromSource<TSource,TItem> : Microsoft.Bot.Builder.Dialogs.IAwaitable<TItem>, Microsoft.Bot.Builder.Internals.Fibers.IAwaiter<TItem>, System.Runtime.CompilerServices.INotifyCompletion
type AwaitableFromSource<'Source, 'Item> = class
interface IAwaitable<'Item>
interface IAwaiter<'Item>
interface INotifyCompletion
Public NotInheritable Class AwaitableFromSource(Of TSource, TItem)
Implements IAwaitable(Of TItem), IAwaiter(Of TItem), INotifyCompletion
Type Parameters
- TSource
The type of the source for build the item.
- TItem
The type if the item.
- Inheritance
-
AwaitableFromSource<TSource,TItem>
- Implements
Constructors
AwaitableFromSource<TSource,TItem>(TSource, Func<TSource,Task<TItem>>) |
Properties
IsCompleted |
Methods
GetAwaiter() | |
GetResult() | |
OnCompleted(Action) |
Extension Methods
ToTask<T>(IAwaitable<T>) |