Skip to content

[feature request] Implement a new await keyword to deal with configureawait #1320

@MithrilMan

Description

@MithrilMan

There is a long time running debate about the fact that ConfigureAwait(false) should have been the default behavior, now I understand it's late to change the default await behavior, but what about introducing a new operator like awaitf (note f char) or a similar concept, that act as a normal await with a ConfigureAwait(false) behavior?
In my example the f char stands for "free" in the sense that it's not capturing context, but my point is not about the real name but about the concept of having an operator that explicitly define the behavior.

This has the pros of having a clear intention while at the same time being backward compatible

what do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions