restart method

Future<bool> restart()

Convenience method for calling cancel and start.

Implementation

Future<bool> restart() {
  cancel();
  return start();
}