You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, templates must be coded against an exact type like Task or ValueTask . We cannot use an IAwaitable interface because of the C# language design.
The idea is to introduce some template engine magic type AnyAwaitable and AnyAwaiter that would match well any awaitable or waiter in a template.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, templates must be coded against an exact type like
Task
orValueTask
. We cannot use anIAwaitable
interface because of the C# language design.The idea is to introduce some template engine magic type
AnyAwaitable
andAnyAwaiter
that would match well any awaitable or waiter in a template.Beta Was this translation helpful? Give feedback.
All reactions