New issue
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
Why use async function rather than sync ? #5
Comments
|
Lines 71 to 73 in e3b21e2
the |
The api I am built is futureOr meaning it is sync or async but I await all incase it is async |
GOT IT! Thanks! (After Dart 2.0, async function will run synchronously before first 'await', so we can make the redo method runs synchronously) |
undo/lib/src/undo_stack.dart
Line 89 in e3b21e2
with redo and undo functions being async function, will it be ok to invoke them inside setState((){}) ?
The text was updated successfully, but these errors were encountered: