Skip to content

Check uses of _nullFuture for zone safety, add tests #29584

@rakudrama

Description

@rakudrama

Check uses of _nullFuture to see if they preserve zones properly.

An optimization to use _Future._nullFuture had to be reverted (73f45d6)
Apparently starting an async function has to use a Future in the current zone, even though the called 'then' function is wrapped in the zone.
Trying to optimize this to _nullFuture (in the root zone) broke a customer tests.

@floitschG I don't really understand why this should matter, since _Future._thenNoZoneRegistration creates another _Future in the current zone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.core-alibrary-async

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions