start method

Future start({
  1. bool clean = false,
})

Start getting updates, if clean is true, previous updates will be dropped

Implementation

Future start({bool clean = false}) async {
  if (clean) {
    await _cleanUpdates();
  }
  await _eventLoop();
  // Clean last read update
  await getUpdates(timeout: 0, offset: _offset);
}