Thread.sleep
This commit is contained in:
@@ -94,13 +94,13 @@ namespace DokterApp
|
|||||||
|
|
||||||
public bool IsReading { get; set; }
|
public bool IsReading { get; set; }
|
||||||
|
|
||||||
async private void Read()
|
private void Read()
|
||||||
{
|
{
|
||||||
var r = new Random();
|
var r = new Random();
|
||||||
|
|
||||||
while (IsReading)
|
while (IsReading)
|
||||||
{
|
{
|
||||||
await Task.Delay(150);
|
Thread.Sleep(150);
|
||||||
var now = DateTime.Now;
|
var now = DateTime.Now;
|
||||||
|
|
||||||
_trend += r.Next(-8, 10);
|
_trend += r.Next(-8, 10);
|
||||||
|
|||||||
Reference in New Issue
Block a user