setLockWarningInfo function

void setLockWarningInfo({
  1. Duration? duration,
  2. void callback()?,
})

Change database lock behavior mechanism.

Default behavior is to print a message if a command hangs for more than 10 seconds. Set en empty callback (not null) to prevent it from being displayed.

Implementation

void setLockWarningInfo({Duration? duration, void Function()? callback}) {
  impl.lockWarningDuration = duration ?? impl.lockWarningDuration;
  impl.lockWarningCallback = callback ?? impl.lockWarningCallback;
}