dr.henry
11/15/2017, 6:33 PMItua
11/15/2017, 6:36 PMdr.henry
11/15/2017, 6:39 PMdr.henry
11/15/2017, 6:39 PMJames
11/15/2017, 6:47 PMthread(start = true) {
      while(mStatus) {
        synchronized(this) {
          Thread.sleep(60_000)
          sendRequest()
        }
      }
    }James
11/15/2017, 6:48 PMdr.henry
11/15/2017, 6:54 PMJames
11/15/2017, 6:59 PMwaitJames
11/15/2017, 7:03 PMsynchronisedwhile(mStatus) {
  val shouldSendRequest = synchronized(this) {
    try {
      (this as java.lang.Object).wait(60_000)
      true
    } catch (ex: Exception) {
      false
    }
  }
  if (shouldSendRequest) sendRequest()
}dr.henry
11/15/2017, 7:15 PMoianmol
11/16/2017, 5:59 AMdr.henry
11/16/2017, 10:22 AMdr.henry
11/16/2017, 10:23 AMoianmol
11/16/2017, 10:25 AMdr.henry
11/16/2017, 10:26 AMdave08
11/16/2017, 10:33 AMdr.henry
11/16/2017, 10:35 AM