[core libs] address ~5 analysis issues in the docs for dart:isolate

Change-Id: Iebe275335fd098419ede97dbb8baff8efaf9dc1e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241161
Reviewed-by: Jonas Termansen <sortie@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
This commit is contained in:
Devon Carew 2022-05-05 16:58:55 +00:00 committed by Commit Bot
parent 6f431ad8df
commit 69bd8e7c5b
2 changed files with 9 additions and 2 deletions

View file

@ -24,6 +24,12 @@ import "dart:typed_data" show ByteBuffer, TypedData, Uint8List;
part "capability.dart";
// Examples can assume:
// Isolate findSomeIsolate() => Isolate.current;
// void untrustedCode(Isolate isolate) {}
// RawReceivePort rawPort = RawReceivePort();
// void actualHandler() {}
/// Thrown when an isolate cannot be created.
class IsolateSpawnException implements Exception {
/// Error message reported by the spawn operation.
@ -734,8 +740,8 @@ abstract class RawReceivePort {
///
/// The handler is invoked in the [Zone.root] zone.
/// If the handler should be invoked in the current zone, do:
/// ```dart
/// rawPort.handler = Zone.current.bind(actualHandler);
/// ```dart import:async
/// rawPort.handler = Zone.current.bindCallback(actualHandler);
/// ```
///
/// The handler must be a function which can accept one argument

View file

@ -3688,6 +3688,7 @@
"dart:convert",
"dart:developer",
"dart:ffi",
"dart:isolate",
"dart:js",
"dart:js_util",
"dart:math",