Jaa


AwaitableFromSource<TSource,TItem> Class

Definition

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>)

Applies to