registerCallback<R> method

ZoneCallback<R> registerCallback<R>(
  1. Zone self,
  2. ZoneDelegate parent,
  3. Zone zone,
  4. R f(
      )
    )

    registerCallback Handler to profile registerCallback zone events

    Implementation

    ZoneCallback<R> registerCallback <R>(Zone self, ZoneDelegate parent, Zone zone, R Function() f) {
      _makeStackFrames(Trace.current(stackDepth));
      return parent.registerCallback(zone, () {
        return f();
      });
    }