Have better typed code in dart:async
's zone implementation
#41253
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-async
type-enhancement
A request for a change that isn't a bug
Right now completing a completer calls _Future.handleValue
Which calls _CustomZone.runUnary:
Which accesses the _CustomZone._runUnary callback:
Notice above that
RunUnaryHandler handler = implementation.function
will cause us to perform a runtime type cast against RunUnaryHandler:@lrhn Can we avoid these hot runtime type checks in the async/zone implementation?
The text was updated successfully, but these errors were encountered: