title: Repeat async task by timer in xamarin forms
body: <p>i'm new to xamarin.forms development and i'm still having my first steps from the few tutorials that are found on the net.
  I have an async task that returns the time from date.jsontest.com
  and i have a timer that decrements a text in a label.
  i want to put the async task in the timer so that it repeats itself and displays the time on the label however im getting cannot convert async lamba to func</p>
  
  <p>here's my code please help me, thanks</p>
  
  <pre><code>static async Task&lt;string&gt; RequestTimeAsync()
      {
          using (var client = new HttpClient())
          {
              var jsonString = await client.GetStringAsync("http://date.jsontest.com/");
              var jsonObject = JObject.Parse(jsonString);
              return jsonObject["time"].Value&lt;string&gt;();
          }
      }
  
  
   protected override async void OnAppearing()
      {
          base.OnAppearing();
  
          timeLabel.Text = await RequestTimeAsync();
  
          Device.StartTimer(TimeSpan.FromSeconds(1), () =&gt; { // i want the taks to be put 
  //here so that it gets repeated
              var number = float.Parse(button.Text) - 1;
              button.Text = number.ToString();
              return number &gt; 0;
          });
  
      }
  </code></pre>
  
  <p>Reloading the Content Page in the timer would do the trick, so if anybody can please help me it would be appreciated</p>