abandoned Completers should fire NotCompletedException() / TimeoutException() #3255
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by is...@google.com
Working with embedded future-completer blocks revealed a painful point: we need to handle the exception on each level and do try-catch for each running block. If not implemented carefully, this could lead to cases where we don't complete (with value or with exception).
It would be great to specify a default timeout for a given completer (and it could complete with some kind of TimeoutException, or with NotCompletedException if it gets garbage collected.
The text was updated successfully, but these errors were encountered: