Skip to content

Commit

Permalink
[monotouch-test] Use a normal thread instead of MulticastDelegate.Beg…
Browse files Browse the repository at this point in the history
…inInvoke.

MulticastDelegate.BeginInvoke isn't supported in .NET.

Ref: dotnet/runtime#16312
  • Loading branch information
rolfbjarne committed Jul 13, 2020
1 parent 696cdd2 commit baeed94
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ public void GenerateCGImagesAsynchronously ()
mre.WaitOne ();
}
};
var asyncResult = main.BeginInvoke (null, null);
main.EndInvoke (asyncResult);
var thread = new Thread (main) {
IsBackground = true,
};
thread.Start ();
Assert.True (mre.WaitOne (2000), "wait");
Assert.True (handled, "handled");
}
Expand Down

0 comments on commit baeed94

Please sign in to comment.