juan_gandhi: (VP)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2014-03-27 11:33 am
Entry tags:

naming

  def killItselfAgainstTheWall() {
    if (isBrowserRunning) Thread.sleep(10000)
    if (isBrowserRunning) {
      error("The application ran faster than the browser and shut down already, while the browser is still running.\n.")
      System.exit(0)
    }
  }

[identity profile] fatoff.livejournal.com 2014-03-27 08:44 pm (UTC)(link)
isBrowserRunning, это что за переменная? Если просто некая статическая/глобальная, то очень странный методе для достоверного определения асинхронного состояния.

[identity profile] ivan-gandhi.livejournal.com 2014-03-27 09:14 pm (UTC)(link)
это метод

в кошерной скале переменных нет, а методы от значений практически не отличаются

[identity profile] yatur.livejournal.com 2014-03-27 09:16 pm (UTC)(link)
Anytime :)
Image