/// <summary> /// Initiates the asynchronous execution to get all the remaining results from DynamoDB. /// </summary> /// <param name="cancellationToken">Token which can be used to cancel the task.</param> /// <returns> /// A Task that can be used to poll or wait for results, or both. /// Results will include the remaining result items from DynamoDB. /// </returns> public async Task <List <T> > GetRemainingAsync(CancellationToken cancellationToken = default(CancellationToken)) { var documents = await DocumentSearch.GetRemainingHelperAsync(cancellationToken).ConfigureAwait(false); List <T> items = SourceContext.FromDocumentsHelper <T>(documents, this.Config).ToList(); return(items); }