title: Suppress warning CS1998: This async method lacks 'await'
body: <p>I've got an interface with some functions that return <code>Task</code>. Some of the classes that implement the interface do not have anything to await, while others might just throw - so the warnings are spurious and annoying.</p>
  <p>Is it possible to suppress these warnings? E.g.:</p>
  <pre class="lang-cs prettyprint-override"><code>public async Task&lt;object&gt; test()
  {
      throw new NotImplementedException();
  }
  </code></pre>
  <p>yields:</p>
  <blockquote>
  <p><em>warning CS1998: This async method lacks 'await' operators and will run
  synchronously. Consider using the 'await' operator to await
  non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work
  on a background thread.</em></p>
  </blockquote>