DescriptionAdd handle method to ErrorResult.
The handle method takes care of checking if the error handler function
accepts two arguements or not, and calles it with error and stackTrace if
possible, otherwise just with error.
I noticed the pattern occuring multiple times when working with error results,
so it would be better to have it handled in one place.
Also changed result file to /// comments.
R=sgjesse@google.com
Committed: https://github.com/dart-lang/async/commit/02ec22851ac73233de02d7cf7d7cfbacd0eaab84
Patch Set 1 #
Messages
Total messages: 7 (1 generated)
|