We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the example I made the change:
case simplePeriodicTask: print("$simplePeriodicTask was executed"); Future.delayed(const Duration(milliseconds: 5500), () { print('Hello, world'); }); break;
But the "hello world" was not printed. Is this intended? If so, please explain the mechanism behind prohibiting the completion of the future.
Br Carl.
The text was updated successfully, but these errors were encountered:
Could it be same problem/solution as here -> #171 (comment)?
You are not awaiting the delayed future. This might lead to the task already being finished before the future is resolved.
Sorry, something went wrong.
await / async is working on my side. Probably await is missing in this code.
await
Refer to the example for a dispatcher with await/async usage. https://github.com/fluttercommunity/flutter_workmanager/blob/main/example/lib/main.dart#L19
No branches or pull requests
In the example I made the change:
But the "hello world" was not printed. Is this intended? If so, please explain the mechanism behind prohibiting the completion of the future.
Br
Carl.
The text was updated successfully, but these errors were encountered: