run<T> static method

T run<T>(
  1. CsrImplementationConfiguration configuration,
  2. T body()
)

Constructs body under configuration, without changing global state.

Implementation

static T run<T>(
  CsrImplementationConfiguration configuration,
  T Function() body,
) =>
    runZoned(body, zoneValues: {_key: configuration});