Etl.Net icon indicating copy to clipboard operation
Etl.Net copied to clipboard

Is there a way to await async operations inside of `.Select(...)`, `.CrossApply(...)`, `.Do(...)`?

Open paillave opened this issue 2 years ago • 1 comments

Discussed in https://github.com/paillave/Etl.Net/discussions/378

Originally posted by eisbaer66 August 21, 2022 Can is use async/await inside of .Select(...), .CrossApply(...), .Do(...)? Do i have to call .Result/.Wait() myself? Is this safe?

for example calling a REST api and reading the content as string:

stream.Select("get content", async context => await context.httpClient.GetStringAsync(context.url));
```</div>

paillave avatar Aug 21 '22 17:08 paillave

something will be developed for rest api. For now, the workaround is here: https://github.com/paillave/Etl.Net/discussions/378

paillave avatar Sep 24 '22 07:09 paillave