Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.97 KB

await-enable-coroutine-support.md

File metadata and controls

54 lines (40 loc) · 1.97 KB
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
cpp-tools
article
/await
-await
C++
/await enable coroutine support [C++]
-await enable coroutine support [C++]
await enable coroutine support [C++]
302c8e69-09b6-4c58-bcdd-0a6a8713a8df
corob-msft
corob
ghogen

/await (Enable coroutine support)

Use the /await compiler option to enable compiler support for coroutines.

Syntax

/await

Remarks

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.

To set this compiler option in the Visual Studio development environment

  1. Open your project's Property Pages dialog box.

  2. Under Configuration Properties, expand the C/C++ folder and choose the Command Line property page.

  3. Enter the /await compiler option in the Additional Options box. Choose OK or Apply to save your changes.

To set this compiler option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.AdditionalOptions%2A.

See Also

Compiler Options
Setting Compiler Options