ant-design-blazor/components/button
Zhiyuan Zheng 5a7a5d7ac6 docs(button): use Task.Delay instead Thread.Sleep (#439)
**Problem:**
According to the current implementation of Blazor(dotnet/aspnetcore#16213 (comment)), it runs in single-thread mode. Thus the call to `System.Threading.Thread.Sleep` will block the UI thread as well. It means when clicking the button, the UI freezes.
For example, in button component, the UI will freeze of 500ms. It's a relatively small time, however Chrome do give a warning to this:
*[Violation] 'setTimeout' handler took 500ms*
**Changes:**
Use `Task.Delay` which is a kind of built-in timer from dotnet. It won't block the UI thread.

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-07-31 01:12:54 +08:00
..
style chore: sync ant-design v4.3.5 (#240) 2020-06-21 23:15:22 +08:00
Button.razor fix(module: button): click animating (#310) 2020-07-07 22:45:13 +08:00
Button.razor.cs docs(button): use Task.Delay instead Thread.Sleep (#439) 2020-07-31 01:12:54 +08:00
ButtonGroup.razor refactor: remove the 'ant' prefix for some components that is already in demos (#162) 2020-05-29 12:55:15 +08:00
ButtonGroup.razor.cs refactor: remove the 'ant' prefix for some components that is already in demos (#162) 2020-05-29 12:55:15 +08:00
ButtonShape.cs refactor: remove the 'ant' prefix for some components that is already in demos (#162) 2020-05-29 12:55:15 +08:00
ButtonSize.cs refactor: remove the 'ant' prefix for some components that is already in demos (#162) 2020-05-29 12:55:15 +08:00
ButtonType.cs refactor: remove the 'ant' prefix for some components that is already in demos (#162) 2020-05-29 12:55:15 +08:00