async
async copied to clipboard
A Dart package that contains tools to work with asynchronous computations.
Currently its `SingleSubscriptionTransformer`, but the purpose is not to allow changing the generic on the stream type. See TODO comment on in the file.
A common pattern is to have a class that can hold callbacks which need to be triggered after a component or widget is disposed. For instance Disposer: https://pub.dev/documentation/angular_components/latest/utils_disposer_disposer/Disposer/addFunction.html If a...
There is no equivalent of `async` and `await`, and the chaining we have through `.then` requires `FutureOr` returns from the callbacks - we can't do any cancelable work inside the...
`Future.catchError` is more error prone in null safe dart than `onError` because return type of the `Function` callback is not statically enforced and `null` was a common default value which...
It would be useful to have a method on a `Future` that returns a `Future` that resolves to null if it doesn't complete within a timeout. This would be useful...
Hi! Firstly thank you so much for this package. I've been using it quite a lot recently and it's very nice! I don't think this is a bug, rather a...
* Dart SDK Version (`dart --version`) 2.2.1-dev.2.0+google3-v2.2.1.dev.2.0 Consider the following test: ```dart class TestStream extends DelegatingStream { bool listenCalled = false; TestStream(Stream stream) : super(stream); @override StreamSubscription listen(void onData(T event),...
When dealing with unaligned or highly-compressed binary inputs, it's usually convenient to request data byte-by-byte. Of course, doing this directly on IO level is quite limiting, so an intermediate caching...
The package [stream_transformers](/dart-lang/stream_transform/) was created as an experiment. The API has now matured and stabilized, and it might make sense to include it in `package:async`, rather than having two different...