From 819db74fa70e13ffbb6eda41b838ef417ea46147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Uek=C3=B6tter?= Date: Fri, 29 Sep 2023 19:46:58 +0200 Subject: [PATCH] fix oopsie whoopsie --- dio/lib/src/compute/compute_web.dart | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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);