Commit Graph

319 Commits

Author SHA1 Message Date
lrn@google.com f8353fb926 Make StreamController take on{Pause,Subscription]StateChange as arguments.
Review URL: https://codereview.chromium.org//12033019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17377 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 09:13:50 +00:00
lrn@google.com 2ee344cd28 Add regression-test for badly chained future-impementations.
Review URL: https://codereview.chromium.org//12043013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17351 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-21 13:10:10 +00:00
lrn@google.com ef13a0822b Make StreamController's unnamed constructor create a single-sub stream.
R=floitsch@google.com

Review URL: https://codereview.chromium.org//11887016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17049 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 09:09:47 +00:00
lrn@google.com 14130ae589 Avoid the _onSubscriptionStateChange being called twice in some cases.
R=floitsch@google.com

Review URL: https://codereview.chromium.org//11880019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17048 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 08:53:21 +00:00
lrn@google.com 9e95844154 Make Streams also cosider a thrown AsyncError a rethrow.
Also change handleError to be based on throws for errors.

Review URL: https://codereview.chromium.org//11862008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16973 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 14:08:23 +00:00
ngeoffray@google.com 184a9f610a Support Timer with 0 millisecond delay in dart2js running in the command line.
Review URL: https://codereview.chromium.org//11866003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16968 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 13:02:58 +00:00
lrn@google.com 4868ee2110 Remove Futures class, move methods to Future.
Optimize Future.forEach, Future.delay.

Review URL: https://codereview.chromium.org//11865005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16954 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 09:46:45 +00:00
lrn@google.com c06ed965e7 Consider a thrown AsyncError from a future/stream handler a rethrow.
The AsyncError is not wrapped, but is used directly as the async error.

BUG=dartbug.com/7781

Review URL: https://codereview.chromium.org//11826050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16950 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 07:02:28 +00:00
lrn@google.com f5a712624e Make a Future returned by the action of Future.whenCompelete delay.
BUG=dartbug.com/7790

Review URL: https://codereview.chromium.org//11824032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16901 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 07:16:21 +00:00
nweiz@google.com 72630960c5 Fix Futures.wait.
The old implementation would throw any errors emitted by any sub-future to the
top level.

Review URL: https://codereview.chromium.org//11818013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16881 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 20:41:57 +00:00
lrn@google.com 7d9d8cdf6d Added toMultiSubscriber on Stream.
(Naming suggestions appreciated.)

Review URL: https://codereview.chromium.org//11791045

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16861 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 16:16:51 +00:00
lrn@google.com 076d437787 Change limits on slow-consumer test.
The actual buffer size was too big to store in 32 MiB on a 64-bit VM.

Anders: Check why the other slow-consumer tests work.
TBR=ajohnsen@google.com

Review URL: https://codereview.chromium.org//11818027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16851 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 13:28:23 +00:00
lrn@google.com 697af4e8e1 Add Stream.fromIterable
Also add Iterable.generate as helper.
Should we have Stream.generate as well?

Review URL: https://codereview.chromium.org//11794044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16848 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 12:34:34 +00:00
ager@google.com 75c8f427cc Update remaining usages of Completer.completeException.
R=floitsch@google.com
BUG=

Review URL: https://codereview.chromium.org//11827017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16840 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 09:29:39 +00:00
lrn@google.com aa7cbb2b41 Remove Signal class and use Future/.whenComplete instead.
Review URL: https://codereview.chromium.org//11794043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16792 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 12:59:00 +00:00
ajohnsen@google.com 5696291f18 Fix future_test.dart and remove future2_test.dart.
BUG=

Review URL: https://codereview.chromium.org//11788028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16784 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 09:27:08 +00:00
vsm@google.com 52f5c2ff22 Test fixes for dartium
Review URL: https://codereview.chromium.org//11778030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16769 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 23:47:37 +00:00
lrn@google.com 2b2de751a7 Fixed status files for dart2js corelib/lib/language tests.
Moved two tests to lib/async where they belong.

R=floitsch@google.com
CC=karlklose@google.com

Review URL: https://codereview.chromium.org//11784020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16699 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 14:15:29 +00:00
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00