Matan Lurey

Results 493 comments of Matan Lurey

Update: @camsim99 landed https://github.com/flutter/packages/pull/6856 (`camerax`) and https://github.com/flutter/packages/pull/6989 is in the merge queue (`video_player`), which will, once merged, complete this issue out.

I am not investigating this and am unlikely to do so. Someone from the {engine|android} team will need to track down what's going on, and if an integration test or...

I might check with the `flutter` CLI folks to see how they handle it.

If I trace the code, it eventually gets to [`.close()`](https://pub.dev/documentation/http/latest/io_client/IOClient/close.html), which does a `.close(force: true`), which _should_ cancel pending requests.

Does this still make sense? Perhaps if there was no other user, and it wasn't needed so far, let's close the issue?

@lrhn: > Note that _async_ is an implemenation detail. You can write asynchronous code without it True. We find that the majority of the time the misuse of these lifecycle...

I'm wondering what the appetite is on this hint, I'd be happy to implement it. @zanderso and I ran into a place where it would have been preferable over a...

Nothing specific - it was just surprising to me that what seemed like the easiest way to create a list of bytes was the least performant.

As of 2018, `void Function()` is the same as `VoidCallback` :man_shrugging:

You could easily accomplish this with closures in Dart as-is: ```dart abstract class Resource { void dispose(); } void using(T resource, void Function(T) fn) { fn(resource); resource.dispose(); } ``` Example...