Add changelog entry for NativeCallable

Bug: https://github.com/dart-lang/sdk/issues/53322
Change-Id: I458ea1a920f68e3de23008649748a24602bb5e0e
Fixes: https://github.com/dart-lang/sdk/issues/53322
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/324180
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
Auto-Submit: Liam Appelbe <liama@google.com>
This commit is contained in:
Liam Appelbe 2023-09-11 22:25:06 +00:00 committed by Commit Queue
parent 3f53d22d43
commit d5555377ed

View file

@ -82,6 +82,17 @@ constraint][language version] lower bound to 3.2 or greater (`sdk: '^3.2.0'`).
- Added `getIsolateId` method to `Service`.
- Added `getObjectId` method to `Service`.
#### `dart:ffi`
- Added the `NativeCallable.isolateLocal` constructor. This creates
`NativeCallable`s with the same functionality as `Pointer.fromFunction`,
except that `NativeCallable` accepts closures.
- Added the `NativeCallable.keepIsolateAlive` method, which determines whether
the `NativeCallable` keeps the isolate that created it alive.
- All `NativeCallable` constructors can now accept closures. Previously
`NativeCallable`s had the same restrictions as `Pointer.fromFunction`, and
could only create callbacks for static functions.
#### `dart:io`
- **Breaking change** [#53005][]: The headers returned by
@ -191,6 +202,14 @@ constraint][language version] lower bound to 3.2 or greater (`sdk: '^3.2.0'`).
[#39796]: https://github.com/dart-lang/sdk/issues/39796
#### `dart:ffi`
- Added the `NativeCallable` class, which can be used to create callbacks that
allow native code to call into Dart code from any thread. See
`NativeCallable.listener`. In future releases, `NativeCallable` will be
updated with more functionality, and will become the recommended way of
creating native callbacks for all use cases, replacing `Pointer.fromFunction`.
#### `dart:io`
- **Breaking change** [#51486][]: