refresh method

Future<void> refresh(
  1. Trigger trigger
)

Triggers a repository refresh. Catches all exceptions thrown during the build process.

Call this method to manually refresh the repository.

Implementation

Future<void> refresh(Trigger trigger) async {
  final completer = Completer();

  _buildCompleter = completer;

  try {
    await build(trigger);
  } on WaitForDataException catch (e) {
    log('Aborting build: $e');
  } catch (e, s) {
    log('Error during build', e, s);
  } finally {
    completer.complete();
  }
}