You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we call unmute() method using await feature, it'll just block a program execution:
void_load(String asset) async {
await f.unmute(); // <--- HERE IS A BLOCKING METHOD//So, this code will not be executed:ByteData _byte =await rootBundle.load(asset);
await f.prepare(sf2: _byte);
}
The text was updated successfully, but these errors were encountered:
rodion-m
changed the title
Await of unmute() blocks program
Await of unmute() blocks the program
Dec 10, 2020
If we call
unmute()
method using await feature, it'll just block a program execution:The text was updated successfully, but these errors were encountered: