From 8901f299efbdaf584d6e21ba99e6c06e254d27df Mon Sep 17 00:00:00 2001 From: Pyranox <64834805+Pyranox@users.noreply.github.com> Date: Mon, 8 Apr 2024 23:18:42 +0200 Subject: [PATCH] Update README.md (#523) 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 28d0872..d60b32a 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