-
Problem descriptionWe're facing following problems:
Proposed solution - need your input hereAs a way around both problems I was thinking of the following:
Tagging @PaoloPia , @ypcode , @pkbullock , @JarbasHorst for awareness, but feedback from anyone is welcome! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @jansenbe, I totally support the naming convention! Do you think it would be that big deal to add a specific synchronous variant (for instance with a "-Synchronously" suffix that would emphasize it has to be used in specific context ? The main thing is indeed to switch to always async code in the internals but then a wrapper would be useful on sync, in a sense, just the other way around of what it is right now. |
Beta Was this translation helpful? Give feedback.
Hi @jansenbe,
I totally support the naming convention!
Regarding the use of GetAwaiter().GetResult(), I think that might be a bit cumbersome in user code, especially in console apps, webjobs, etc...
More than cumbersome, it could be really a pain to use because in sync programs, it stops before the tasks are done, and it can quickly become hard to figure out...
Do you think it would be that big deal to add a specific synchronous variant (for instance with a "-Synchronously" suffix that would emphasize it has to be used in specific context ?
That combined with relevant docs that it should be async first and , synchronous in context it's specifically needed (console apps, ...)
The main thin…