| import 'dart:async'; | |
| // ignore: avoid_classes_with_only_static_members | |
| /// An Isolate implementation for the web that throws when used. | |
| abstract class Isolate { | |
| static Future<R> run<R>(FutureOr<R> Function() computation, | |
| {String? debugName}) => | |
| throw ArgumentError.value('true', 'canWorkInIsolates', | |
| 'isolate tests are not supported on the web'); | |
| } |