W3cubDocs

/Dart 2

bindBinaryCallbackGuarded<T1, T2> method

void Function(T1, T2) bindBinaryCallbackGuarded <T1, T2>(void callback(T1 argument1, 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) => this.runBinaryGuarded(registered, arg1, arg2);

Implementation

void Function(T1, T2) bindBinaryCallbackGuarded<T1, T2>(
    void callback(T1 argument1, T2 argument2));

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-async/Zone/bindBinaryCallbackGuarded.html