destinationFolder.createNewFile() probably returns a future. You could use that Future instead of using a periodic timer.