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

Side by Side Diff: sdk/lib/isolate/isolate.dart

Issue 545483002: Per isolate package root. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed test. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/isolate.cc ('k') | tests/isolate/isolate.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Concurrent programming using _isolates_: 6 * Concurrent programming using _isolates_:
7 * independent workers that are similar to threads 7 * independent workers that are similar to threads
8 * but don't share memory, 8 * but don't share memory,
9 * communicating only via messages. 9 * communicating only via messages.
10 */ 10 */
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 * The `packageRoot` URI must be a "file" or "http"/"https" URI that specifies 120 * The `packageRoot` URI must be a "file" or "http"/"https" URI that specifies
121 * a directory. If it doesn't end in a slash, one will be added before 121 * a directory. If it doesn't end in a slash, one will be added before
122 * using the URI, and any query or fragment parts are ignored. 122 * using the URI, and any query or fragment parts are ignored.
123 * Package imports (like "package:foo/bar.dart") in the new isolate are 123 * Package imports (like "package:foo/bar.dart") in the new isolate are
124 * resolved against this location, as by 124 * resolved against this location, as by
125 * `packageRoot.resolve("foo/bar.dart")`. 125 * `packageRoot.resolve("foo/bar.dart")`.
126 * This includes the main entry [uri] if it happens to be a package-URL. 126 * This includes the main entry [uri] if it happens to be a package-URL.
127 * If [packageRoot] is omitted, it defaults to the same URI that 127 * If [packageRoot] is omitted, it defaults to the same URI that
128 * the current isolate is using. 128 * the current isolate is using.
129 * 129 *
130 * WARNING: The [packageRoot] parameter is not implemented on any 130 * WARNING: The [packageRoot] parameter is not implemented on all
131 * platform yet. 131 * platforms yet.
132 * 132 *
133 * If the [paused] parameter is set to `true`, 133 * If the [paused] parameter is set to `true`,
134 * the isolate will start up in a paused state, 134 * the isolate will start up in a paused state,
135 * as if by an initial call of `isolate.pause(isolate.pauseCapability)`. 135 * as if by an initial call of `isolate.pause(isolate.pauseCapability)`.
136 * This allows setting up error or exit listeners on the isolate 136 * This allows setting up error or exit listeners on the isolate
137 * before it starts running. 137 * before it starts running.
138 * To resume the isolate, call `isolate.resume(isolate.pauseCapability)`. 138 * To resume the isolate, call `isolate.resume(isolate.pauseCapability)`.
139 * 139 *
140 * WARNING: The `pause` parameter is not implemented on all platforms yet. 140 * WARNING: The `pause` parameter is not implemented on all platforms yet.
141 * 141 *
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 : _description = description, 549 : _description = description,
550 stackTrace = new _RemoteStackTrace(stackDescription); 550 stackTrace = new _RemoteStackTrace(stackDescription);
551 String toString() => _description; 551 String toString() => _description;
552 } 552 }
553 553
554 class _RemoteStackTrace implements StackTrace { 554 class _RemoteStackTrace implements StackTrace {
555 String _trace; 555 String _trace;
556 _RemoteStackTrace(this._trace); 556 _RemoteStackTrace(this._trace);
557 String toString() => _trace; 557 String toString() => _trace;
558 } 558 }
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | tests/isolate/isolate.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698