Skip to content

Add before task / after task semantics similar to zone.js #16

Open
@kraman

Description

@kraman

Open questions:

  • Does beforeTask throwing end the zone? or just prevent the immediate task from running?
  • Zone lib provides beforeTask & afterTask as hooks that be defined when creating the zone. Does the + and - sugar form zone.js make sense to add here?
  • Zones in this lib are independent and carry their own hooks rather than inherit from parent. Users have be explicit about what hooks to run. What is the use-case where inheritance is useful?
  • Assume the following
RootZone
  Zone1
  |-EventEmitter
  +-Zone2
    +-Zone3
      +-listener

When I emit from zone1, would before/after be executed only on zone3 or on zone2 as well?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions