dart-native / dart_native

Write iOS&macOS&Android Code using Dart. This package liberates you from redundant glue code and low performance of Flutter Channel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Replace Flutter channel by ffi/port.
  2. Waiting for stable channel.
  3. Waiting for official wrapper.

ref: dart-lang/sdk#37022