ant-design-blazor/components/carousel
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.1.5 (#84) 2020-04-26 10:41:53 +08:00
Carousel.razor feat(module: carousel): scroll vertically for Left/Right DotPosition (#216) 2020-06-11 23:24:58 +08:00
Carousel.razor.cs docs(button): use Task.Delay instead Thread.Sleep (#439) 2020-07-31 01:12:54 +08:00
CarouselDotPosition.cs refactor: add grid and carousel demo (#187) 2020-06-07 00:20:28 +08:00
CarouselEffect.cs refactor: add grid and carousel demo (#187) 2020-06-07 00:20:28 +08:00
CarouselSlick.cs fix: children components dispose (#399) 2020-07-21 23:48:43 +08:00