runWith<R> static method

R runWith<R>(
  1. Span span,
  2. R body()
)

Runs body with span as the current one.

Implementation

static R runWith<R>(Span span, R Function() body) =>
    runZoned(body, zoneValues: {_zoneKey: span});