Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:async
  3. Zone
  4. run<R> abstract method
run
description

run<R> abstract method

Rrun<R>(
  1. Raction()
)

Executesaction in this zone.

By default (as implemented in theroot zone), runsactionwithcurrent set to this zone.

Ifaction throws, the synchronous exception is not caught by the zone'serror handler. UserunGuarded to achieve that.

Since the root zone is the only zone that can modify the value ofcurrent, custom zones intercepting run should always delegate to theirparent zone. They may take actions before and after the call.

Implementation

R run<R>(R action());
  1. Dart
  2. dart:async
  3. Zone
  4. run<R> abstract method
Zone class

[8]ページ先頭

©2009-2025 Movatter.jp