/// <summary> /// Allows awaiting this object directly. /// </summary> public TaskAwaiter <TResponse> GetAwaiter() { return(ResponseAsync.GetAwaiter()); }
/// <summary>Configures an awaiter used to await this task>.</summary> /// <param name="continueOnCapturedContext"> /// true to attempt to marshal the continuation back to the original context captured; otherwise, false. /// </param> /// <returns>An object used to await this task.</returns> public IConfiguredTaskAwaitable <TResponse> ConfigureAwait(bool continueOnCapturedContext) => new ConfiguredValueTaskAwaitableWrapper <TResponse>(ResponseAsync.ConfigureAwait(continueOnCapturedContext));