Apologies if this question is deemed inappropriate for SO, but I was wondering if any of you know if there's a significant performance difference between streaming futures via asStream
and consuming futures normally via then
. Would you expect a general performance difference between the following two operations?
Operation 1
expensiveOperation().asStream().listen((res) {
doSomething(res);
});
Operation 2
expensiveOperation().then((res) {
doSomething(res);
});