forked from enlightenment/efl
csharp: Calling ConfigureAwait on tasks Model.
Summary: ref T8424 Reviewers: lauromoura, felipealmeida, YOhoho, segfaultxavi Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8424 Differential Revision: https://phab.enlightenment.org/D10496
This commit is contained in:
parent
882a2d4ec4
commit
c0f3febccf
|
@ -42,10 +42,10 @@ public class TestModel {
|
|||
var model = new Efl.GenericModel<VeggieViewModel>(veggies, loop);
|
||||
Test.AssertEquals(3, (int)model.GetChildrenCount());
|
||||
|
||||
VeggieViewModel r2 = await model.GetAtAsync(1);
|
||||
VeggieViewModel r2 = await model.GetAtAsync(1).ConfigureAwait(false);
|
||||
Test.AssertEquals(r2.Name, "Romaine Lettuce");
|
||||
|
||||
VeggieViewModel r = await model.GetAtAsync(0);
|
||||
VeggieViewModel r = await model.GetAtAsync(0).ConfigureAwait(false);
|
||||
Test.AssertEquals(r.Name, "Tomato");
|
||||
|
||||
loop.End();
|
||||
|
|
Loading…
Reference in New Issue