[Application] Use ConfigureAwait(false) when await a Task (#599)
authorjeremy-jang <35089715+jeremy-jang@users.noreply.github.com>
Thu, 6 Dec 2018 09:41:23 +0000 (18:41 +0900)
committersemun-lee <35090067+semun-lee@users.noreply.github.com>
Thu, 6 Dec 2018 09:41:23 +0000 (18:41 +0900)
Prevent unwanted deadlock issue.

Change-Id: I26edb4c0679b482b759b11483084d4b9b1c47ec7
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/Tizen.Applications.Common/Tizen.Applications/ApplicationManager.cs

index 47aaa92..e4be731 100644 (file)
@@ -199,7 +199,7 @@ namespace Tizen.Applications
                     throw ApplicationManagerErrorFactory.GetException(err, "Failed to foreach the appinfo.");
                 }
                 return result;
-            });
+            }).ConfigureAwait(false);
         }
 
         /// <summary>
@@ -263,7 +263,7 @@ namespace Tizen.Applications
                 };
                 filter.Fetch(cb);
                 return result;
-            });
+            }).ConfigureAwait(false);
         }
 
         /// <summary>
@@ -297,7 +297,7 @@ namespace Tizen.Applications
                 };
                 filter.Fetch(cb);
                 return result;
-            });
+            }).ConfigureAwait(false);
         }
 
         /// <summary>
@@ -336,7 +336,7 @@ namespace Tizen.Applications
                     throw ApplicationManagerErrorFactory.GetException(err, "Failed to foreach appcontext.");
                 }
                 return result;
-            });
+            }).ConfigureAwait(false);
         }
 
         /// <summary>
@@ -375,7 +375,7 @@ namespace Tizen.Applications
                     throw ApplicationManagerErrorFactory.GetException(err, "Failed to foreach appcontext.");
                 }
                 return result;
-            });
+            }).ConfigureAwait(false);
         }
 
         /// <summary>