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 9, 2020
1 parent 9cbeb42 commit 46f25ba
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 46f25ba

Please sign in to comment.