If some code returns a future and determines that the future should return "Error" or "Exception" how can a stack trace be passed to Completer.completeException(exception, stackTrace);
Completer.completeException(exception, stackTrace);
If I understand correctly: when you catch an exception in dart, you can also catch the stack trace:
try { // something } catch(e, stacktrace) { myCompleter.completeException(e, stacktrace); }
2.1m questions
2.1m answers
60 comments
57.0k users