-
Notifications
You must be signed in to change notification settings - Fork 5
Can't use async callback #10
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
Comments
It seems not all callback-based APIs have the same issue. e.g. |
Have you solved your problem? |
@WonyoungChoi has started working on the solution but it may take quite a while to finish. |
@roc2539 It's still going on. We are currently checking the feasibility with several solutions internally. |
A related functionality (dart-lang/sdk@13ec074) will be added in Dart 3.1 but it has the following limitation:
|
Uh oh!
There was an error while loading. Please reload this page.
Due to the thread problem, asynchronous callbacks are currently unavailable.
example of a problem situation
If the charging status is changed, following error will be raised.
error: Cannot invoke native callback outside an isolate.
sample code
https://github.com/WonyoungChoi/tizen_interop_async_test
repro with sample code
reason
The above code is executed on the Flutter UI thread, but most of the tizen native callbacks come from the main-loop of the main thread. Dart does not support calls between isolates.
See more: dart-lang/sdk#37022
solution?
The text was updated successfully, but these errors were encountered: