runWithScope<R> static method

R runWithScope<R>(
  1. BloomQueryScope scope,
  2. R body()
)

Runs body with scope as the current request scope.

Implementation

static R runWithScope<R>(BloomQueryScope scope, R Function() body) =>
    runZoned(body, zoneValues: {scopeZoneKey: scope});