blob: 0f592220f1fc194acf7d92bb9719dbb3e5577d53 [file] [log] [blame]
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');
}