run<R> method

R run<R>(
  1. R body()
)

Run code in a zone with this context.

Implementation

R run<R>(R Function() body) {
  return runZoned(body, zoneValues: {_contextKey: this});
}