Skip to content
Discussion options

You must be logged in to vote

Options I can think of:

  1. Cheapest way is to include an await Task.CompletedTask; in your code
  2. Implementing an adapter type by hand (your own types implementing IAsyncEnumerable and IAsyncEnumerator, which would wrap around an IEnumerator), which is a bit tedious
  3. Find a library that already implemented such wrapper types
  4. Raise the question on StackOverflow and see if any better ideas come up ;-)

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
6 replies
@CyrusNajmabadi
Comment options

@TonyValenti
Comment options

@TonyValenti
Comment options

@RikkiGibson
Comment options

@colejohnson66
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jcouv
Comment options

You must be logged in to vote
3 replies
@HaloFour
Comment options

@Richiban
Comment options

@silkfire
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants