public static async Task PollAsync(IFiberLoop <C> fiber) { IWait wait; do { wait = await fiber.PollAsync(Context, Token); }while (wait.Need != Need.None && wait.Need != Need.Done); }
public static async Task PollAsync(IFiberLoop fiber) { IWait wait; do { wait = await fiber.PollAsync(); }while (wait.Need != Need.None && wait.Need != Need.Done); }
public DialogContext(IBotToUser botToUser, IBotData data, IFiberLoop fiber) { SetField.NotNull(out this.botToUser, nameof(botToUser), botToUser); SetField.NotNull(out this.data, nameof(data), data); SetField.NotNull(out this.fiber, nameof(fiber), fiber); }