Skip to content

Conversation

@oldnewthing
Copy link
Member

This is useful when you are wrapping another operation's progress, as is common with HTTP filters.

auto operation = m_inner.SendRequestAsync(request);
operation.Progress([progress_token = co_await get_progress_token()](auto&&, HttpProgress progress)
{
    progress.Retries += retries_performed;
    progress_token(progress);
});
co_await operation;

@kennykerr
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@kennykerr kennykerr merged commit f48d7a6 into master Jun 29, 2020
@kennykerr kennykerr deleted the progress branch June 29, 2020 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants