diff --git a/dio/lib/src/compute/compute_web.dart b/dio/lib/src/compute/compute_web.dart index 9d531132e..5955e4d1b 100644 --- a/dio/lib/src/compute/compute_web.dart +++ b/dio/lib/src/compute/compute_web.dart @@ -1,7 +1,10 @@ import 'dart:async'; -Future compute( - FutureOr Function() callback, { - String? debugName, +import 'package:dio/src/compute/compute.dart'; + +Future compute( + ComputeCallback callback, + Q message, { + String? debugLabel, }) async => - callback(); + callback(message);