|             Line data    Source code 
       1              : import 'dart:async';
       2              : 
       3              : ///
       4              : ///
       5              : /// CAUTION: THIS FILE NEEDS TO BE MANUALLY COMPILED
       6              : ///
       7              : /// 1. in your project, create a file `web/web_worker.dart`
       8              : /// 2. add the following contents:
       9              : /// ```dart
      10              : /// import 'package:hive/hive.dart';
      11              : ///
      12              : /// Future<void> main() => startWebWorker();
      13              : /// ```
      14              : /// 3. compile the file using:
      15              : /// ```shell
      16              : /// dart compile js -o web/web_worker.dart.js -m web/web_worker.dart
      17              : /// ```
      18              : ///
      19              : /// You should not check in that file into your VCS. Instead, you should compile
      20              : /// the web worker in your CI pipeline.
      21              : ///
      22              : 
      23            0 : Future<void> startWebWorker() => Future.value();
         |