p-hatan/ mirror

pub repository

mirror.p-hatan.ir

async

1.4.0

Utility functions and classes related to the 'dart:async' library.

Download archive

Readme

Async utilities package

Contains tools to work with asynchronous computations.

The package contains Stream and Future related functionality, as well as sub-libraries with different utilities.

Zipping streams

The "stream_zip.dart" sub-library contains functionality to combine several streams of events into a single stream of tuples of events.

Results

The "result.dart" sub-library introduces a Result class that can hold either a value or an error. It allows capturing an asynchronous computation which can give either a value or an error, into an asynchronous computation that always gives a Result value, where errors can be treated as data. It also allows releasing the Result back into an asynchronous computation.

History.

This package is unrelated to the discontinued async package with version 0.1.7.

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

1.4.0

  • Added AsyncMemoizer.future, which allows the result to be accessed before runOnce() is called.

  • Added RestartableTimer, a non-periodic timer that can be reset over and over.

1.3.0

  • Added StreamCompleter class for creating a stream now and providing its events later as another stream.

  • Added StreamQueue class which allows requesting events from a stream before they are avilable. It is like a StreamIterator that can queue requests.

  • Added SubscriptionStream which creates a single-subscription stream from an existing stream subscription.

  • Added a ResultFuture class for synchronously accessing the result of a wrapped future.

  • Added FutureGroup.onIdle and FutureGroup.isIdle, which provide visibility into whether a group is actively waiting on any futures.

  • Add an AsyncMemoizer class for running an asynchronous block of code exactly once.

  • Added delegating wrapper classes for a number of core async types: DelegatingFuture, DelegatingStreamConsumer, DelegatingStreamController, DelegatingSink, DelegatingEventSink, DelegatingStreamSink, and DelegatingStreamSubscription. These are all simple wrappers that forward all calls to the wrapped objects. They can be used to expose only the desired interface for subclasses, or extended to add extra functionality.

1.2.0

  • Added a FutureGroup class for waiting for a group of futures, potentially of unknown size, to complete.

  • Added a StreamGroup class for merging the events of a group of streams, potentially of unknown size.

1.1.1

  • Updated SDK version constraint to at least 1.9.0.

1.1.0

  • ChangeLog starts here.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add async
pubspec.yaml
name: async
version: 1.4.0
author: Dart Team <misc@dartlang.org>
description: Utility functions and classes related to the 'dart:async' library.
homepage: https://www.github.com/dart-lang/async
dev_dependencies:
  fake_async: "^0.1.2"
  stack_trace: "^1.0.0"
  test: "^0.12.0"
environment:
  sdk: ">=1.9.0 <2.0.0"

Version history

VersionPublishedArchiveSHA-256
0.1.12013-05-09T19:57:55.309210ZDownload4a3718012904af165564773a9f1419d7fbb78ed0d17d0e0407da9b3483f3cf0d
0.1.22013-05-10T11:50:50.000590ZDownloade0eca6b8da47df3768f7929e06cd6da8adab4b935b08e794eadf8635cf946e6f
0.1.32013-05-10T13:21:44.285590ZDownload51c01bd5e8aad6697cad6fe52ee86669f948829c621bc24f2d3be9e2ecc12c06
0.1.42013-05-10T13:36:16.887820ZDownload31ef33b5ba87aedd7f1a19587a1abf5bb473bd2a4e02775b91f1c1e6d034f6b4
0.1.52013-05-11T11:23:55.758990ZDownload5ac12abaf51605fd42a2722a444b1a4e8e2ddf9298828852f4e7f0371c46bb7b
0.1.62013-05-16T15:29:04.421620ZDownloade5304fe4ad16409ecd80dc13df2fd11d2ded001c660fc89cf4dc0a37dfcde545
0.1.72013-05-19T15:11:52.985160ZDownload50a27385522338aabb3ac3dec623ee5bcbc3c2e7c3d7126a732c86dcc9bb74e7
0.1.7+2013052222072013-05-22T16:10:44.994990ZDownload035aa65313b4b774f0015af0454a795cfcffba818564a033062c110edb248317
0.1.7+2013060723462013-06-07T17:49:45.113850ZDownloadf4a521d11e2d0877a3790709dc43f2fd03cffaf3da2f2df17e1d09f611017d46
0.1.7+2013070317412013-07-03T11:48:50.947200ZDownloadd2b3ce152ad8e612e947b1d731f005054361e26dac0ed7c4b6df3d5d8d75a13b
0.1.7+2013070317422013-07-03T19:05:08.176060ZDownload344e1bb3be6cbca76374d48c9121c32797276864841183199a2a6b573dc69609
0.9.02013-12-20T07:55:14.448740ZDownload6202b752ec3752f73262359e581280546b4edb29c0e2a76f42ae34287eaa6f53
0.9.12013-12-20T07:59:24.010290ZDownloadf5ecc1610d58da86e47534b0d629d10c613b4657e4238d1c90e90eb37f8ef88f
1.0.02014-05-23T10:16:40.183920ZDownload1ea8eabe0091e6d3e1e5e775adf1f3a7acb6decf6f8074ba3b27cd7c18fe89c3
1.0.0+12014-09-23T23:54:50.461760ZDownload9581d96389cb5c29ea47e2dc86a05e64ecdd8f1bce510f5a818bb589a004560b
1.1.02015-02-23T10:37:37.021290ZDownload26f7f1945efc2c2867ca7b859cc10ff74ec23462abc043338f2d2a70d8ae157c
1.2.02015-06-26T01:31:29.961ZDownload46185e8d898f3aeba8aef67fd32668a9ba06d3453a28c2ef469099045541c86f
1.3.02015-08-10T22:58:52.711ZDownload7fae6155525ad7ea1cf2ca8fa4233c2f7f46ecd01b0ee45e80952fba3b8df26e
1.4.02015-10-28T21:12:12.691ZDownload3cbdedcb20b6d23cad8385f78b2d51923446a9b2460f159609bf481c22169937
1.5.02015-12-14T21:11:03.601ZDownloadfb97c1d0b6988c109ed595ae0ae81646a902baa34e3dd33484587ccf40ef10b2
1.6.02016-01-11T21:08:35.240ZDownload72eacc23eb50d9f8e9b125f9c3227171b97a6a56a16b0aa640ddabd2a45c30e5
1.7.02016-01-19T21:48:34.276ZDownload31e8581c3bae9dce0f36c8aa20435edb416cfad846339dd9d06fc4e764e4a898
1.8.02016-01-25T22:40:48.099ZDownload6d572ba7196bffdee9954c0658fcfd38aa153d89e19401011837d0fd2397a743
1.9.02016-03-08T20:24:44.980ZDownload014e28c8db01a353521dffadfedb3897b6bb12513f32ed30bd3da89a335a2f25
1.10.02016-04-12T20:43:48.102ZDownload2cac3acaeccbbbf06da0e9ddb4f39563d2ddba8eaadecc264e8a447ddfa79726
1.11.02016-05-09T19:32:19.103ZDownloadf5ebc0575ec1d5a6685588e6328372a8fce050e239d780f1386f00a357be8a59
1.11.12016-07-19T21:54:57.028ZDownload67a206d9c0d20853452a5171b5b4ca6c913113c98d587fb8e7e67cc84915edbe
1.11.22016-09-27T10:19:58.629ZDownload5cf581e8f2cb26b44e248e0343fafd74200e9a76a747ddf49f10c35926e226b5
1.11.32016-10-24T19:32:27.480ZDownload32f0274fbb1ef81316c7bb6dc33f7b596e25c3dda5b8550163a6f0a89712cdc0
1.12.02017-01-24T21:33:26.930ZDownload78eda22375d22c73ebfa349d425e8795b375f28a021ee2b14a50827605120213
1.13.02017-02-06T23:40:52.928ZDownloadead4b9f1659bea63524fdabfd3f7a85e3e571fd9d02279f562ae9bddee58962b
1.13.12017-02-15T22:22:07.249ZDownload76aa69249e190c953b8af8915ab0888540e81c26c0913e7607c92a751ab7a4ab
1.13.22017-02-20T11:35:45.837ZDownload9a4d52aee772a2048fb9afdbd3d30db32edc02df007cd08cf7125be9b70ffef1
1.13.32017-05-17T22:00:45.977128ZDownloade7fe9543e3eb70aeab9392f6f3be7de1ee9e1ccc8a479f25b810573757278d4d
2.0.02017-08-29T13:49:43.256559ZDownload45cc90762b42ee06a1774dceb5f4dc84e2d901391bd491037312c1fbd621e0e7
2.0.12017-10-03T22:32:59.068034ZDownload380a0735795c8f29f8ae2d202a3da46ae127271daf26dfddeea8f4e803a85739
2.0.22018-01-03T03:41:44.208651ZDownloadb7f2720560d779466ded671a643cca71c14b6c82cc0215c46665d3bf0c29d567
2.0.32018-01-05T20:50:25.355766ZDownload25d79db1fc80a750ce26faed51373f6d3bb0ffc0815842ef08746e33c12bcbfe
2.0.42018-02-10T01:22:31.088103ZDownload2b12e44c72f2f4bd6cbe394482b5d1ddcd17993ca528b2c6bfdcfe59d6a4b620
2.0.52018-02-27T22:30:35.110633ZDownloadcf9f704ef15b6bb6afd8e0d1b504dbb347a69590bb7b04c53773d81f25fa6662
2.0.62018-03-03T01:15:16.283524ZDownload3267d6ef569fde74ae9fbeacbc1a01f50692a6b8c0bbc077122a31b86df34335
2.0.72018-05-03T12:04:40.446419ZDownload5a428e659da752990c9e131d91caece5423dcb1581bc7b0ae3eeb940f142ecbd
2.0.82018-07-19T23:28:23.633548ZDownloadbf54d1c770347fa8a69744d8ca99cff05395327d5ed5f49d50c0cf7dfa50ec7f
2.1.02019-03-22T21:13:26.288737ZDownload04c4b8d77df9abaae352a430cefa6c578aa3564188ae059c9e10fd90877e30b9
2.2.02019-04-05T23:14:34.472839ZDownloadb5cabd24ffa0b4574cf219f785f9b44324755bdf0b54ab51f28b984a0941c272
2.3.02019-07-17T21:29:31.916792ZDownloada94b444ed3f20f5bea1bd2d53c90973deca6854cbecd4a062ec4c3985e54f68e
2.4.02019-10-03T21:34:26.015916ZDownload621073b7f52bdf82367abf19e627aadc25605b70b98055e320962f028d7b2c55
2.4.12020-03-16T20:56:16.307853ZDownloadf560f36042276f08b83b57c778630fc8bbb8e2da57aabbfc76761f57191d1d85
2.4.22020-07-06T19:47:36.437663ZDownload116007395b5353cd12fc55d253821a81a3213bb258ae6edc65d0c14a4af1bdff
2.5.0-nullsafety2020-07-29T15:44:39.776394ZDownload410f63355f8c7e5c2432c9a2812cf3dd85c1617908be647962570860ff07f280
2.5.0-nullsafety.12020-09-22T20:16:36.871293ZDownloadaadbf84dffaac01f28c38ac8cdfda7fb1549a838c8e396aac0b208ce9133bf48
2.5.0-nullsafety.22020-10-23T19:52:11.266636ZDownload6a28806a4efd6a7e5e98f8f5909001c08667d5dcfc24062141e6a08cbe27b45c
2.5.0-nullsafety.32020-11-03T22:12:25.228263ZDownload083dec0c8bd92288c1e1d2c5d6fe7e90b4f37167c934d920d09a8baf7ff75b40
2.5.02021-02-02T19:16:54.685555ZDownload6eda8392a48ae1de7ea438c91a4ba3e77205f043e7013102a424863aa6db368f
2.6.02021-04-28T15:37:21.006039ZDownload558fff0367e75875e136f628336a7c599cb5b77bf83cad58312847d243d54a44
2.6.12021-05-03T17:53:21.555243ZDownloade21a2193873e85591cdf0c9a4059139adacc87391d8330774d3f67076863015c
2.7.02021-05-20T18:01:27.236564ZDownload5386f08a54d1b58d17e4bc6dee9b6b24a256b1fc7e2addba11945eec144edad8
2.8.02021-07-22T19:42:55.266980ZDownloade475379bece740d9a7365bea46b7d0f832e1ec30b41b6c99a8dd3373909f51da
2.8.12021-07-22T21:12:39.664998ZDownloadd810902f3971b6e8e2f9153c361d51bf1af1b99c25087906a50945e828a17591
2.8.22021-08-10T10:51:54.863741ZDownloaddb4766341bd8ecb66556f31ab891a5d596ef829221993531bd64a8e6342f0cda
2.9.02022-04-01T00:57:01.007445ZDownload271b8899fc99f9df4f4ed419fa14e2fff392c7b2c162fbb87b222e2e963ddc73
2.10.02022-10-24T18:59:06.776238ZDownloadbfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0
2.11.02023-03-10T21:42:31.687779ZDownload947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c
2.12.02024-10-16T08:39:22.633388ZDownloadd2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
2.13.02025-02-06T18:36:01.591754ZDownload758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb
2.13.12026-03-26T00:53:13.853173ZDownloade2eb0491ba5ddb6177742d2da23904574082139b07c1e33b8503b9f46f3e1a37

Dependencies

No direct dependencies declared.