Skip to content

Commit

Permalink
remove wait....
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-rodriguez committed Sep 12, 2023
1 parent fa19edd commit 0244501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/skiasharp/LiveChartsCore.SkiaSharp.WinForms/Chart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ internal Point GetCanvasPosition()
void IChartView.InvokeOnUIThread(Action action)
{
if (!IsHandleCreated) return;
_ = BeginInvoke(action).AsyncWaitHandle.WaitOne();
_ = BeginInvoke(action);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/skiasharp/LiveChartsCore.SkiaSharpView.Eto/Chart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ internal Point GetCanvasPosition()

void IChartView.InvokeOnUIThread(Action action)
{
Application.Instance.InvokeAsync(action).Wait();
_ = Application.Instance.InvokeAsync(action);
}

/// <summary>
Expand Down

0 comments on commit 0244501

Please sign in to comment.