Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(663)

Issue 9652001: SendPort + ReceivePort changes: (Closed)

Created:
8 years, 9 months ago by Siggi Cherem (dart-lang)
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

SendPort + ReceivePort changes: - document what are valid messages in SendPort.send - change SendPort.call to return a future of the reply - remove ReceivePort.singleShot Committed: https://code.google.com/p/dart/source/detail?r=5368

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -329 lines) Patch
M client/tests/client/dom/DOMIsolatesTest.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M client/tests/client/dom/IsolatesTest.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M frog/leg/lib/mockimpl.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M frog/minfrog View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lib/isolate/frog/isolateimpl.dart View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M lib/isolate/frog/messages.dart View 4 chunks +0 lines, -20 lines 0 comments Download
M lib/isolate/frog/ports.dart View 5 chunks +14 lines, -46 lines 0 comments Download
M lib/isolate/isolate_api.dart View 1 2 2 chunks +23 lines, -18 lines 0 comments Download
M lib/isolate/isolate_compiler.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/bin/directory_impl.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/bin/file_impl.dart View 1 2 3 17 chunks +17 lines, -17 lines 0 comments Download
M runtime/lib/isolate.dart View 3 chunks +13 lines, -38 lines 0 comments Download
M runtime/vm/custom_isolate_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/snapshot_test.dart View 11 chunks +29 lines, -47 lines 0 comments Download
M samples/isolate_html/IsolateSample.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M samples/leap/leap_leg.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M samples/proxy/promise.dart View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
M samples/proxy/proxy.dart View 1 chunk +1 line, -3 lines 0 comments Download
M samples/tests/samples/src/proxy/PromiseBasedTest.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/isolate/src/ConstructorTest.dart View 1 1 chunk +1 line, -2 lines 0 comments Download
M tests/isolate/src/CrossIsolateMessageTest.dart View 1 3 chunks +7 lines, -7 lines 0 comments Download
M tests/isolate/src/Isolate3NegativeTest.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/isolate/src/IsolateComplexMessagesTest.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/src/IsolateNegativeTest.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/src/MandelIsolateTest.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/src/Message2Test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/src/MessageTest.dart View 2 chunks +20 lines, -23 lines 0 comments Download
M tests/isolate/src/MintMakerTest.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M tests/isolate/src/Mixed2Test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/isolate/src/MixedTest.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/isolate/src/NestedSpawn2Test.dart View 1 2 chunks +27 lines, -18 lines 0 comments Download
M tests/isolate/src/NestedSpawnTest.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/isolate/src/RequestReplyTest.dart View 1 2 chunks +2 lines, -13 lines 0 comments Download
M tests/isolate/src/SerializationTest.dart View 1 chunk +1 line, -7 lines 0 comments Download
M tests/isolate/src/SpawnTest.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/src/StaticStateTest.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/isolate/src/TestFramework.dart View 1 1 chunk +4 lines, -2 lines 0 comments Download
M tests/language/src/TypedMessageTest.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/src/io/DirectoryTest.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/standalone/src/io/FileInputStreamTest.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/src/io/FileTest.dart View 1 2 3 5 chunks +10 lines, -5 lines 0 comments Download
M tests/standalone/src/io/StreamPipeTest.dart View 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Siggi Cherem (dart-lang)
These are changes that we've discussed so far in the new proposed API. Ivan and ...
8 years, 9 months ago (2012-03-08 21:57:41 UTC) #1
Mads Ager (google)
The dart:io changes look good for the new API. I'm not sure that I like ...
8 years, 9 months ago (2012-03-09 10:30:06 UTC) #2
kasperl
LGTM. I'm okay with removing ReceivePort.singleShot for now even if it ends up coming back ...
8 years, 9 months ago (2012-03-09 10:36:46 UTC) #3
Siggi Cherem (dart-lang)
On 2012/03/09 10:30:06, Mads Ager wrote: > The dart:io changes look good for the new ...
8 years, 9 months ago (2012-03-09 17:49:36 UTC) #4
eub
LGTM, one change to consider (which you may have considered already). http://codereview.chromium.org/9652001/diff/5001/lib/isolate/frog/isolateimpl.dart File lib/isolate/frog/isolateimpl.dart (right): ...
8 years, 9 months ago (2012-03-09 18:33:10 UTC) #5
Ivan Posva
LGTM. The single shot receive ports always looked like a special case to me. -Ivan ...
8 years, 9 months ago (2012-03-09 19:38:09 UTC) #6
Siggi Cherem (dart-lang)
Thanks for all the comments! http://codereview.chromium.org/9652001/diff/5001/lib/isolate/frog/isolateimpl.dart File lib/isolate/frog/isolateimpl.dart (right): http://codereview.chromium.org/9652001/diff/5001/lib/isolate/frog/isolateimpl.dart#newcode298 lib/isolate/frog/isolateimpl.dart:298: port.close(); On 2012/03/09 18:33:10, ...
8 years, 9 months ago (2012-03-10 03:09:59 UTC) #7
turnidge
8 years, 9 months ago (2012-03-12 23:03:20 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698