Skip to content

Delete Dart Functions associated with ObjC Blocks #204

Closed
@liamappelbe

Description

@liamappelbe

This is not feasible to do at the moment, because NativeFinalizers can't call functions created by Pointer.fromFunction. See #233 for details.

This will be possible once dart-lang/sdk#47778 is fixed

UPDATE (27/10/23): The fix we're going with is to ship a small piece of native code in a support library that will notify the owner isolate when the block is deleted. This is blocked on the native assets feature (see dart-lang/sdk#50565 and flutter/flutter#129757).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions