registerUnaryCallback<R, T> method

ZoneUnaryCallback<R, T> registerUnaryCallback<R, T>(
  1. Zone self,
  2. ZoneDelegate parent,
  3. Zone zone,
  4. R f(
    1. T arg
    )
)

registerUnaryCallback Handler to profile registerUnaryCallback zone events

Implementation

ZoneUnaryCallback<R, T> registerUnaryCallback<R, T>(Zone self, ZoneDelegate parent, Zone zone, R Function(T arg) f) {
  _makeStackFrames(Trace.current(stackDepth));
  return parent.registerUnaryCallback(zone, (arg) {
    return f(arg);
  });
}