You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting an issue where the console interface is not being updated until the function ends, or I call Thread.Sleep()
constinttotalTicks=10;varoptions=new ProgressBarOptions
{ProgressCharacter='─',ProgressBarOnBottom=true,};using(varpbar=new ProgressBar(totalTicks,"Initial message", options)){
pbar.Tick();//will advance pbar to 1 out of 10.//we can also advance and update the progressbar text
pbar.Tick("Step 2 of 10");
pbar.Tick("Step 3 of 10");
Thread.Sleep(1000);
pbar.Tick("Step 4 of 10");
pbar.Tick("Step 5 of 10");
Thread.Sleep(1000);
pbar.Tick("Step 6 of 10");
pbar.Tick("Step 7 of 10");
pbar.Tick("Step 8 of 10");
Thread.Sleep(1000);
pbar.Tick("Step 9 of 10");
pbar.Tick("Step 10 of 10");}
When running the application with, or without breakpoints, the interface is only updated after Thread.Sleep(), or once the function returns..
The text was updated successfully, but these errors were encountered:
I'm getting an issue where the console interface is not being updated until the function ends, or I call
Thread.Sleep()
When running the application with, or without breakpoints, the interface is only updated after
Thread.Sleep()
, or once the function returns..The text was updated successfully, but these errors were encountered: