| OLD | NEW |
| 1 | 1 |
| 2 library when; | 2 library when; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 | 5 |
| 6 /// Registers callbacks on the result of a [callback], which may or may not be | 6 /// Registers callbacks on the result of a [callback], which may or may not be |
| 7 /// a [Future]. | 7 /// a [Future]. |
| 8 /// | 8 /// |
| 9 /// If [callback] returns a future, any of [onSuccess], [onError], or | 9 /// If [callback] returns a future, any of [onSuccess], [onError], or |
| 10 /// [onComplete] that are provided are registered on the future, | 10 /// [onComplete] that are provided are registered on the future, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 if (onComplete != null) onComplete(); | 60 if (onComplete != null) onComplete(); |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | 63 |
| 64 return result; | 64 return result; |
| 65 } | 65 } |
| 66 | 66 |
| 67 typedef _Unary(x); | 67 typedef _Unary(x); |
| 68 typedef _Binary(x, y); | 68 typedef _Binary(x, y); |
| OLD | NEW |