lock method

  1. @override
void lock()
override

Lock the current Dio instance.

Dio will enqueue the incoming request tasks instead send them directly when interceptor.request is locked.

Implementation

@override
void lock() {
  interceptors.requestLock.lock();
}