withProgressGracePeriod<R> function

R withProgressGracePeriod<R>(
  1. R callback(), {
  2. required ProgressGracePeriod progressGracePeriod,
})

Runs callback in a Zone with progressGracePeriod as the active grace period.

Implementation

R withProgressGracePeriod<R>(
  R Function() callback, {
  required ProgressGracePeriod progressGracePeriod,
}) => runZoned(
  callback,
  zoneValues: {_progressGracePeriodKey: progressGracePeriod},
);