bindUnaryCallback<R, T> method Null safety

ZoneUnaryCallback<R, T> bindUnaryCallback<R, T>(
  1. R callback(
    1. T argument
    )
)

Registers the provided callback and returns a function that will execute in this zone.

Equivalent to:

ZoneCallback registered = this.registerUnaryCallback(callback);
return (arg) => this.runUnary(registered, arg);

Implementation

ZoneUnaryCallback<R, T> bindUnaryCallback<R, T>(R callback(T argument));