bindBinaryCallback<R, T1, T2> method

ZoneBinaryCallback<R, T1, T2> bindBinaryCallback <R, T1, T2>(
  1. R callback(
    1. T1 argument1,
    2. T2 argument2
    )
)

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

Equivalent to:

ZoneCallback registered = registerBinaryCallback(callback);
return (arg1, arg2) => thin.runBinary(registered, arg1, arg2);

Implementation

ZoneBinaryCallback<R, T1, T2> bindBinaryCallback<R, T1, T2>(
    R callback(T1 argument1, T2 argument2));

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-async/Zone/bindBinaryCallback.html