incrementAsyncWithError method

Future<void> incrementAsyncWithError()

Implementation

Future<void> incrementAsyncWithError() async {
  await emitAsync(
    Future.delayed(
      const Duration(milliseconds: 100),
      () => throw Exception('Async error'),
    ),
  );
}