title | ms.custom | ms.date | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | author | ms.author | manager | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-await (Enable coroutine support) | Microsoft Docs |
08/15/2017 |
|
article |
|
|
|
302c8e69-09b6-4c58-bcdd-0a6a8713a8df |
corob-msft |
corob |
ghogen |
Use the /await compiler option to enable compiler support for coroutines.
/await
The /await compiler option enables compiler support for C++ coroutines and the keywords co_await, co_yield, and co_return. This option is off by default. For information about support for coroutines in Visual Studio, see the Visual Studio Team Blog. For more information about the coroutines standard proposal, see N4628 Working Draft, Technical Specification for C++ Extensions for Coroutines.
The /await option is available beginning in Visual Studio 2015.
-
Open your project's Property Pages dialog box.
-
Under Configuration Properties, expand the C/C++ folder and choose the Command Line property page.
-
Enter the /await compiler option in the Additional Options box. Choose OK or Apply to save your changes.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.AdditionalOptions%2A.