Skip to content

ZoneDelegate is underdocumented #26455

@Hixie

Description

@Hixie

ZoneDelegate says:

When forwarding to parent zones one can't just invoke the parent zone's exposed functions (like Zone.run), but one needs to provide more information (like the zone the run was initiated). Zone callbacks thus receive more information including this ZoneDelegate class. When delegating to the parent zone one should go through the given instance instead of directly invoking the parent zone.

...but that just raises more questions. Why do you need to provide more information? What is "the zone the run was initiated"?

Further, the individual functions on this class have no documentation at all. If you're in a handleUncaughtHandler and you want to run something in the context of the parent zone, what are the arguments you pass to parent.run, for example?

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-asynctype-documentationA request to add or improve documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions