Stream.pipe should return a Future<void> #44510
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-async
The implementation for Stream.pipe is:
Shouldn't this method return
Future<void>
rather thanFuture<dynamic>
? My motivation is for #35825, where I'm catching code like:So
Future<dynamic>.catchError
'sonError
handler should returnFutureOr<dynamic>
, and returningvoid
from the handler would be an error.The text was updated successfully, but these errors were encountered: