---
title: "What is the purpose of ConfigureAwait(false)?"  
description: "What is the purpose of ConfigureAwait(false)?"  
author: "Ponu Maurya"  
published: 2025-06-23  
updated: 2025-06-23  
canonical: https://www.mindstick.com/interview/34277/what-is-the-purpose-of-configureawait-false  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# What is the purpose of ConfigureAwait(false)?

**Answer:**\
Prevents resuming on the original `SynchronizationContext` (e.g., UI thread).

```cs
await SomeAsyncMethod().ConfigureAwait(false);
```

**Use it** in library code to avoid deadlocks in UI apps and improve performance.

## Answers

### Answer by Ponu Maurya

**Answer:**\
Prevents resuming on the original `SynchronizationContext` (e.g., UI thread).

```cs
await SomeAsyncMethod().ConfigureAwait(false);
```

**Use it** in library code to avoid deadlocks in UI apps and improve performance.


---

Original Source: https://www.mindstick.com/interview/34277/what-is-the-purpose-of-configureawait-false

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
