isolateConnectionFactory method

IsolateConnectionFactory isolateConnectionFactory()

A connection factory that can be passed to different isolates.

Use this to access the database in background isolates.

Implementation

IsolateConnectionFactory isolateConnectionFactory() {
  return IsolateConnectionFactory(
      openFactory: openFactory,
      mutex: mutex.shared,
      upstreamPort: _eventsPort.client());
}