From 19e3b28699b21fe5b5b3dc27f336b030c43d6d31 Mon Sep 17 00:00:00 2001 From: Pyranox <64834805+Pyranox@users.noreply.github.com> Date: Wed, 22 Nov 2023 19:50:14 +0100 Subject: [PATCH] Update README.md await is used but in a not asynchronous fonction -> just add async for the workmanager().executetask fonction --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e56b260..0580919 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Wrap the code inside your `Workmanager().executeTask` in a `try and catch` in or ```dart @pragma('vm:entry-point') void callbackDispatcher() { - Workmanager().executeTask((task, inputData) { + Workmanager().executeTask((task, inputData) async { int? totalExecutions; final _sharedPreference = await SharedPreferences.getInstance(); //Initialize dependency