Async callback by ffi
yulingtianxia opened this issue · comments
DartNative async callback is running under flutter channel now, which has to receive a async result callback. It needs block current thread and waiting for return value. Callback on main thread can NOT be blocked.
Solution&Plan:
- Replace Flutter channel by ffi/port.
- Waiting for stable channel.
- Waiting for official wrapper.
ref: dart-lang/sdk#37022