Fiber<C> Class

Definition

[System.Serializable]
public sealed class Fiber<C> : Microsoft.Bot.Builder.Internals.Fibers.IFiber<C>, Microsoft.Bot.Builder.Internals.Fibers.IFiberLoop<C>, Microsoft.Bot.Builder.Internals.Fibers.IWaiter<C>
[<System.Serializable>]
type Fiber<'C> = class
    interface IFiber<'C>
    interface IWaiter<'C>
    interface IFiberLoop<'C>
Public NotInheritable Class Fiber(Of C)
Implements IFiber(Of C), IFiberLoop(Of C), IWaiter(Of C)

Type Parameters

C
Inheritance
Fiber<C>
Attributes
Implements

Constructors

Fiber<C>(IFrameFactory<C>, IWaitFactory<C>)

Explicit Interface Implementations

IFiber<C>.Done()
IFiber<C>.Frames
IFiber<C>.Push()
IFiber<C>.Waits
IFiberLoop<C>.PollAsync(C, CancellationToken)
IWaiter<C>.Mark
IWaiter<C>.Wait

Extension Methods

Call<C,T>(IFiber<C>, Rest<C,T>, T)

Push a frame on the stack, schedule a wait, and immediately satisfy that wait.

Call<C,T,R>(IFiber<C>, Rest<C,T>, T, Rest<C,R>)

Scheduled a wait for the return value, then invoke the Call<C,T>(IFiber<C>, Rest<C,T>, T) method.

Done<C,T>(IFiber<C>, T)

Remove the frame from the stack, and satisfy the existing wait with the return value.

Fail<C>(IFiber<C>, Exception)
Post<C,T>(IFiber<C>, T)
Reset<C>(IFiber<C>)
Wait<C,T>(IFiber<C>, Rest<C,T>)

Without pushing or popping the stack, schedule a wait to be satisfied later.

Applies to